diff --git a/src/options/controls-settings/add-edit-action-popup.vue b/src/options/controls-settings/add-edit-action-popup.vue
index 5a5222d..060d375 100644
--- a/src/options/controls-settings/add-edit-action-popup.vue
+++ b/src/options/controls-settings/add-edit-action-popup.vue
@@ -22,7 +22,7 @@
>
-
+
----- [ raw action data ] -----
Action:
{{action}}
@@ -199,10 +199,13 @@ export default {
},
updateCommand(action, arg, customArg) {
this.addEditCommand = false;
+
+ console.log("update command received. args:", {action, arg, customArg})
+
if (this.currentCmdIndex < 0) {
this.action.cmd.push({
- cmd: action,
- arg: arg,
+ action: action,
+ arg: arg.arg,
customArg: customArg,
});
} else {
diff --git a/src/options/controls-settings/command-builder/command-add-edit.vue b/src/options/controls-settings/command-builder/command-add-edit.vue
index d37257a..064b440 100644
--- a/src/options/controls-settings/command-builder/command-add-edit.vue
+++ b/src/options/controls-settings/command-builder/command-add-edit.vue
@@ -140,7 +140,7 @@ export default {
},
setArgument(arg) {
console.log("SETTING ARG:", arg)
- this.selectedArgument = ActionList[this.selectedAction].args.find(x => x.arg === arg);
+ this.selectedArgument = ActionList[this.selectedAction].args.find(x => x.arg == arg);
this.customArgumentValue = undefined;
},
emitCommand() {