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 @@