Fix lost reports when switching workflow versions

We serialize workflow.reports, but we were only setting it on the
workflow instance if the markdown editor emits it.

Fixes a part of https://github.com/galaxyproject/galaxy/issues/17903
This commit is contained in:
mvdbeek
2024-04-04 18:41:34 +02:00
parent e970ae521e
commit 8630e3b343
@@ -145,7 +145,7 @@
<MarkdownEditor
v-else
:markdown-text="markdownText"
:markdown-config="markdownConfig"
:markdown-config="report"
mode="report"
:title="'Workflow Report: ' + name"
:steps="steps"
@@ -310,7 +310,6 @@ export default {
data() {
return {
isCanvas: true,
markdownConfig: null,
markdownText: null,
versions: [],
parameters: null,
@@ -762,8 +761,8 @@ export default {
const report = data.report || {};
const markdown = report.markdown || reportDefault;
this.report = report;
this.markdownText = markdown;
this.markdownConfig = report;
this.hideModal();
this.stateMessages = getStateUpgradeMessages(data);
const has_changes = this.stateMessages.length > 0;