From ed9facbb33e1baef41a154bbdef42d62d622d91e Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 23 Jan 2023 12:53:44 +0900 Subject: [PATCH] fix(client): Aiscript: button is not defined Fix #9704 --- CHANGELOG.md | 7 +++++++ packages/frontend/src/scripts/aiscript/ui.ts | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b820f22c3..61f7367c4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,13 @@ You should also include the user name that made the change. --> +## 13.x.x (unreleased) + +### Improvements + +### Bugfixes +- Aiscript: button is not defined + ## 13.1.7 (2023/01/22) ### Improvements diff --git a/packages/frontend/src/scripts/aiscript/ui.ts b/packages/frontend/src/scripts/aiscript/ui.ts index b1895a5f33..fb73c0b4b7 100644 --- a/packages/frontend/src/scripts/aiscript/ui.ts +++ b/packages/frontend/src/scripts/aiscript/ui.ts @@ -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 {