diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-03-15 08:07:52 +0800 |
---|---|---|
committer | Brett Walker <bwalker@gitlab.com> | 2019-03-18 13:28:35 -0500 |
commit | 3d85406734fc31bb9c9fb95ce26898b65b60b3ea (patch) | |
tree | b7f51a67e2f6b4fc01c6e7b75b381f205102136f /app/controllers/concerns | |
parent | 45a4bc300c52a6cf17049626ea682d039efa9fc7 (diff) | |
download | gitlab-ce-3d85406734fc31bb9c9fb95ce26898b65b60b3ea.tar.gz |
Only return `commands_changes` used in frontend
When executing quick actions, this limits the `commands_changes`
response to only those used by the frontend
Diffstat (limited to 'app/controllers/concerns')
-rw-r--r-- | app/controllers/concerns/notes_actions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/concerns/notes_actions.rb b/app/controllers/concerns/notes_actions.rb index b4fee93713b..f96d1821095 100644 --- a/app/controllers/concerns/notes_actions.rb +++ b/app/controllers/concerns/notes_actions.rb @@ -48,7 +48,7 @@ module NotesActions respond_to do |format| format.json do json = { - commands_changes: @note.commands_changes + commands_changes: @note.commands_changes&.slice(:emoji_award, :time_estimate, :spend_time) } if @note.persisted? && return_discussion? |