From df53080d37701e341d282721d5ae368fa97cea9a Mon Sep 17 00:00:00 2001 From: Heinrich Lee Yu Date: Fri, 15 Mar 2019 08:07:52 +0800 Subject: Only return `commands_changes` used in frontend When executing quick actions, this limits the `commands_changes` response to only those used by the frontend --- app/controllers/concerns/notes_actions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') 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? -- cgit v1.2.3