From 0d891327318a55f703aa17d2c56d5294ba796c6a Mon Sep 17 00:00:00 2001 From: Made Baruna Date: Thu, 2 Dec 2021 23:19:57 +0700 Subject: [PATCH] Fix wish detail server when accessing it directly --- src/routes/wish/[id].svelte | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/routes/wish/[id].svelte b/src/routes/wish/[id].svelte index 2e381326..88dc4280 100644 --- a/src/routes/wish/[id].svelte +++ b/src/routes/wish/[id].svelte @@ -374,6 +374,12 @@ } onMount(async () => { + const prefix = getAccountPrefix(); + const serverSave = await readSave(`${prefix}server`); + if (serverSave !== null) { + server.set(serverSave); + } + await readLocalData(); isSafari =