Skip to content

Commit

Permalink
Merge pull request #17904 from mvdbeek/fix_losing_markdown
Browse files Browse the repository at this point in the history
[24.0] Fix lost reports when switching workflow versions
  • Loading branch information
guerler authored Apr 5, 2024
2 parents b887bf3 + 8630e3b commit f3377c4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/src/components/Workflow/Editor/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
<MarkdownEditor
v-else
:markdown-text="markdownText"
:markdown-config="markdownConfig"
:markdown-config="report"
mode="report"
:title="'Workflow Report: ' + name"
:steps="steps"
Expand Down Expand Up @@ -313,7 +313,6 @@ export default {
data() {
return {
isCanvas: true,
markdownConfig: null,
markdownText: null,
versions: [],
parameters: null,
Expand Down Expand Up @@ -774,8 +773,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;
Expand Down

0 comments on commit f3377c4

Please sign in to comment.