Fix vuex bug

This commit is contained in:
Ramon Wenger 2024-05-15 12:18:03 +02:00
parent 62e9ef4fc9
commit 388d131a16
1 changed files with 2 additions and 4 deletions

View File

@ -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(