Skip to content

Commit 86b0175

Browse files
committed
Convert cmd args to strings before setting cmd in parent
1 parent 15ebba5 commit 86b0175

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/fprime_gds/flask/static/addons/commanding/command-history.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,9 @@ Vue.component("command-history", {
102102
cmd.full_name = template.full_name;
103103
// Can only set command if it is a child of a command input
104104
if (this.$parent.selectCmd) {
105-
this.$parent.selectCmd(cmd.full_name, cmd.args);
105+
// command-input expects an array of strings as arguments
106+
this.$parent.selectCmd(cmd.full_name, cmd.args.map(el => el.toString ? el.toString() : el));
106107
}
107108
}
108109
}
109-
});
110+
});

0 commit comments

Comments
 (0)