fix preset resetting itself (#16473)

This commit is contained in:
Nitwel
2022-11-16 15:34:14 +01:00
committed by GitHub
parent 45eb4941fc
commit 568479712f

View File

@@ -94,7 +94,9 @@ export function usePreset(
// update current bookmark title when it is edited in navigation-bookmark
presetsStore.$subscribe(() => {
initLocalPreset();
if (!bookmarkExists.value) return;
const newBookmark = presetsStore.getBookmark(Number(bookmark.value));
localPreset.value.bookmark = newBookmark?.bookmark;
});
const layoutOptions = computed<Record<string, any>>({