Fix params passed over to PreviewMarkdownService

parent 003d0641
......@@ -103,7 +103,7 @@ class Projects::MergeRequests::DraftsController < Projects::MergeRequests::Appli
end
def render_draft_note(note)
params = { quick_actions_target_id: merge_request.id, quick_actions_target_type: 'MergeRequest', text: note.note }
params = { target_id: merge_request.id, target_type: 'MergeRequest', text: note.note }
result = PreviewMarkdownService.new(@project, current_user, params).execute
markdown_params = { markdown_engine: result[:markdown_engine], issuable_state_filter_enabled: true }
......
......@@ -40,6 +40,6 @@ class EpicEntity < IssuableEntity
end
expose :preview_note_path do |epic|
preview_markdown_path(epic.group, quick_actions_target_type: 'Epic', quick_actions_target_id: epic.id)
preview_markdown_path(epic.group, target_type: 'Epic', target_id: epic.id)
end
end
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