From 68671639e1fb3d25c278ab0de7aba65dd4e45702 Mon Sep 17 00:00:00 2001 From: Ahmet Bora Date: Fri, 20 Dec 2024 14:53:51 +0300 Subject: [PATCH] Fix console error when no buttons available #6863 --- panel/src/components/Forms/Writer/Toolbar.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panel/src/components/Forms/Writer/Toolbar.vue b/panel/src/components/Forms/Writer/Toolbar.vue index f01b968ccd..9c07959268 100644 --- a/panel/src/components/Forms/Writer/Toolbar.vue +++ b/panel/src/components/Forms/Writer/Toolbar.vue @@ -277,6 +277,10 @@ export default { * @public */ open() { + if (this.buttons.length === 0) { + return; + } + this.isOpen = true; if (this.inline) {