allow for temporary presets (#4724)

This commit is contained in:
Nitwel
2021-03-29 16:20:09 +02:00
committed by GitHub
parent 07aff68532
commit 706dca1740
2 changed files with 3 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ export default defineComponent({
const { collection } = toRefs(props);
const { info: collectionInfo } = useCollection(collection);
const { layout, layoutOptions, layoutQuery, searchQuery } = usePreset(collection);
const { layout, layoutOptions, layoutQuery, searchQuery } = usePreset(collection, ref(null), true);
// This is a local copy of the layout. This means that we can sync it the layout without
// having use-preset auto-save the values