diff --git a/src/components/composer/MultiParams.vue b/src/components/composer/MultiParams.vue index 74b7982..b765c35 100644 --- a/src/components/composer/MultiParams.vue +++ b/src/components/composer/MultiParams.vue @@ -220,7 +220,10 @@ export default defineComponent({ code: this.generateCode(subCommand, argvs), }; if (resetOutputVariable) { - delete newModelValue.outputVariable; + newModelValue.outputVariable = { + name: "", + details: {}, + }; } this.$emit("update:modelValue", newModelValue); }, diff --git a/src/components/composer/card/OutputEditor.vue b/src/components/composer/card/OutputEditor.vue index c9149c7..07b1e9e 100644 --- a/src/components/composer/card/OutputEditor.vue +++ b/src/components/composer/card/OutputEditor.vue @@ -200,7 +200,7 @@ export default defineComponent({ currentSubCommand() { if (!this.command.subCommands) return {}; return this.command.subCommands.find( - (cmd) => cmd.value === this.command.value + (cmd) => cmd.value === this.command.subCommand ); }, commandName() {