diff --git a/src/App.svelte b/src/App.svelte index 58501e3..ed314c9 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -6,10 +6,7 @@ import Sidebar from './lib/Sidebar.svelte' import Footer from './lib/Footer.svelte' - import { apiKeyStorage, chatsStorage } from './lib/Storage.svelte' - - $: sortedChats = $chatsStorage.sort((a, b) => b.id - a.id) - $: apiKey = $apiKeyStorage + import { apiKeyStorage } from './lib/Storage.svelte' // Check if the API key is passed in as a "key" query parameter - if so, save it const urlParams: URLSearchParams = new URLSearchParams(window.location.search) @@ -24,7 +21,7 @@
- +
{#key $location} diff --git a/src/lib/Sidebar.svelte b/src/lib/Sidebar.svelte index 572a24e..4338789 100644 --- a/src/lib/Sidebar.svelte +++ b/src/lib/Sidebar.svelte @@ -1,12 +1,10 @@ @@ -15,13 +13,13 @@