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);
|
const bookmark = props.bookmarks && props.bookmarks.find((bookmark) => bookmark.uuid === props.component.id);
|
||||||
return bookmark && bookmark.note;
|
return bookmark && bookmark.note;
|
||||||
});
|
});
|
||||||
const showBookmarkActions = computed(
|
const showBookmarkActions = computed(() => props.component.type !== 'content_list' && !props.editMode);
|
||||||
() => props.component.type !== 'content_list' && !props.editMode
|
|
||||||
);
|
|
||||||
const componentClass = computed(() => {
|
const componentClass = computed(() => {
|
||||||
let classes = ['content-component', `content-component--${props.component.type}`];
|
let classes = ['content-component', `content-component--${props.component.type}`];
|
||||||
if (bookmarked.value) {
|
if (bookmarked.value) {
|
||||||
|
|
@ -204,7 +202,7 @@ const addNote = (id: string) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const editNote = () => {
|
const editNote = () => {
|
||||||
store.dispatch('editNote', note);
|
store.dispatch('editNote', note.value);
|
||||||
};
|
};
|
||||||
|
|
||||||
const { mutation, updateCurry, getVariables, optimisticResponse } = constructContentComponentBookmarkMutation(
|
const { mutation, updateCurry, getVariables, optimisticResponse } = constructContentComponentBookmarkMutation(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue