Commit 0d5ce393 authored by Thong Kuah's avatar Thong Kuah

Merge branch '209784-fix-paginated-notes-feature-flag' into 'master'

Fix the paginated_notes feature flag for groups

See merge request gitlab-org/gitlab!42227
parents f57e9052 e7628ea3
......@@ -100,7 +100,7 @@ module NotesActions
# the finder. Here, we select between returning all notes since then, or a
# page's worth of notes.
def gather_notes
if Feature.enabled?(:paginated_notes, project)
if Feature.enabled?(:paginated_notes, noteable.try(:resource_parent))
gather_some_notes
else
gather_all_notes
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment