fix(client): Aiscript: button is not defined

Fix #9704
This commit is contained in:
syuilo
2023-01-23 12:53:44 +09:00
parent 2c52655b17
commit ed9facbb33
2 changed files with 8 additions and 1 deletions

View File

@ -303,7 +303,7 @@ function getButtonOptions(def: values.Value | undefined, call: (fn: values.VFn,
if (primary) utils.assertBoolean(primary);
const rounded = def.value.get('rounded');
if (rounded) utils.assertBoolean(rounded);
const disabled = button.value.get('disabled');
const disabled = def.value.get('disabled');
if (disabled) utils.assertBoolean(disabled);
return {