Skip to content

Commit 32be2f6

Browse files
committed
Fixes #1429
1 parent 9ad7ca5 commit 32be2f6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

web/editor_ui.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,12 @@ export class MainUI {
354354
return {
355355
icon: mdiIcon ? mdiIcon : featherIcon,
356356
description: button.description || "",
357-
callback: button.run,
357+
callback: button.run || (() => {
358+
client.flashNotification(
359+
"Legacy actionButton definition detected, please define a run() callback",
360+
"error",
361+
);
362+
}),
358363
href: "",
359364
};
360365
}),

0 commit comments

Comments
 (0)