From 516f507ac42ec831189cd5b367ccd22c676401ae Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Wed, 26 Jun 2024 11:59:17 +0200 Subject: [PATCH] feat: remove props destructuring EditorToolbar --- frontend/src/components/input/editor/EditorToolbar.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/input/editor/EditorToolbar.vue b/frontend/src/components/input/editor/EditorToolbar.vue index 9b8ad158d..06ed8927e 100644 --- a/frontend/src/components/input/editor/EditorToolbar.vue +++ b/frontend/src/components/input/editor/EditorToolbar.vue @@ -341,9 +341,7 @@ import type {Editor} from '@tiptap/vue-3' import BaseButton from '@/components/base/BaseButton.vue' import {setLinkInEditor} from '@/components/input/editor/setLinkInEditor' -const { - editor = null, -} = defineProps<{ +const props = defineProps<{ editor: Editor, }>() @@ -356,7 +354,7 @@ function toggleTableMode() { } function setLink(event) { - setLinkInEditor(event.target.getBoundingClientRect(), editor) + setLinkInEditor(event.target.getBoundingClientRect(), props.editor) }