From b0c7fa20bd7e6fbaed6582680c4792acdbca1c27 Mon Sep 17 00:00:00 2001 From: rijkvanzanten Date: Tue, 12 Oct 2021 10:45:48 -0400 Subject: [PATCH] Handle empty toolbar in wysiwyg --- .../interfaces/input-rich-text-html/input-rich-text-html.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/interfaces/input-rich-text-html/input-rich-text-html.vue b/app/src/interfaces/input-rich-text-html/input-rich-text-html.vue index a41d937e36..c1a74fac4f 100644 --- a/app/src/interfaces/input-rich-text-html/input-rich-text-html.vue +++ b/app/src/interfaces/input-rich-text-html/input-rich-text-html.vue @@ -191,7 +191,7 @@ export default defineComponent({ default: '', }, toolbar: { - type: Array as PropType, + type: Array as PropType, default: () => [ 'bold', 'italic', @@ -310,7 +310,7 @@ export default defineComponent({ styleFormats = props.customFormats; } - let toolbarString = props.toolbar + let toolbarString = (props.toolbar ?? []) .map((t) => t .replace(/^link$/g, 'customLink')