From 388d131a169296925ba9db591d0bb80ebb4f6fbb Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Wed, 15 May 2024 12:18:03 +0200 Subject: [PATCH] Fix vuex bug --- client/src/components/content-blocks/ContentComponent.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/src/components/content-blocks/ContentComponent.vue b/client/src/components/content-blocks/ContentComponent.vue index b3ee3d62..efa1ccbb 100644 --- a/client/src/components/content-blocks/ContentComponent.vue +++ b/client/src/components/content-blocks/ContentComponent.vue @@ -138,9 +138,7 @@ const note = computed(() => { const bookmark = props.bookmarks && props.bookmarks.find((bookmark) => bookmark.uuid === props.component.id); return bookmark && bookmark.note; }); -const showBookmarkActions = computed( - () => props.component.type !== 'content_list' && !props.editMode -); +const showBookmarkActions = computed(() => props.component.type !== 'content_list' && !props.editMode); const componentClass = computed(() => { let classes = ['content-component', `content-component--${props.component.type}`]; if (bookmarked.value) { @@ -204,7 +202,7 @@ const addNote = (id: string) => { }; const editNote = () => { - store.dispatch('editNote', note); + store.dispatch('editNote', note.value); }; const { mutation, updateCurry, getVariables, optimisticResponse } = constructContentComponentBookmarkMutation(