diff options
Diffstat (limited to 'app/helpers/graph_helper.rb')
-rw-r--r-- | app/helpers/graph_helper.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/helpers/graph_helper.rb b/app/helpers/graph_helper.rb index 45ca820f7b3..788002f126d 100644 --- a/app/helpers/graph_helper.rb +++ b/app/helpers/graph_helper.rb @@ -5,8 +5,10 @@ module GraphHelper refs = [commit.ref_names(repo).join(' ')] # append note count - notes_count = @graph.notes[commit.id] - refs << "[#{pluralize(notes_count, 'note')}]" if notes_count > 0 + unless Feature.enabled?(:disable_network_graph_notes_count, @project, type: :experiment) + notes_count = @graph.notes[commit.id] + refs << "[#{pluralize(notes_count, 'note')}]" if notes_count > 0 + end refs.join end |