From 1878a5915dc93cd01caae4b99063b4db8205c9ea Mon Sep 17 00:00:00 2001 From: neil Date: Sun, 22 Jan 2023 21:23:18 +0800 Subject: [PATCH] retrigger build --- .github/workflows/main.yml | 1 + modules/gui/src/routes/+layout.svelte | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ef01fb7..ae25d6b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -118,6 +118,7 @@ jobs: - darwin+aarch64 # - linux+aarch64 steps: + - uses: actions/checkout@v3 - uses: actions/download-artifact@v3 with: name: ${{ matrix.platform }} diff --git a/modules/gui/src/routes/+layout.svelte b/modules/gui/src/routes/+layout.svelte index 08d8d92..82fd45b 100644 --- a/modules/gui/src/routes/+layout.svelte +++ b/modules/gui/src/routes/+layout.svelte @@ -13,7 +13,7 @@ $: if ($navigating) view.scrollTop = 0; afterNavigate(({ from, to }) => { - if (to?.route.id && from && from?.url) { + if (to && to?.route.id && from && from?.url) { const nextPath = to.url.href.replace(to.url.origin, ''); const fromPath = from?.url.href.replace(from.url.origin, ''); navStore.setNewPath(nextPath, fromPath || '/');