diff --git a/src/routes/__layout.svelte b/src/routes/__layout.svelte index a039118..c2a1404 100644 --- a/src/routes/__layout.svelte +++ b/src/routes/__layout.svelte @@ -12,13 +12,15 @@ import '$root/styles/styles.scss'; import Toast from '$lib/components/toast/Toast.svelte'; - if (browser) { - const collection = JSON.parse(localStorage.collection); - console.log('collection', collection); - if (collection) { - collectionStore.addAll(collection); - } - } + // let collectionEmpty = $collectionStore.length === 0 || false; + // console.log('collectionEmpty', collectionEmpty); + // if (browser && collectionEmpty) { + // const collection = JSON.parse(localStorage.collection); + // console.log('collection', collection); + // if (collection && collection.length !== 0) { + // collectionStore.addAll(collection); + // } + // } const dev = process.env.NODE_ENV !== 'production'; @@ -56,7 +58,7 @@
{/if} - +