Fix vuex bug
This commit is contained in:
parent
62e9ef4fc9
commit
388d131a16
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue