diff --git a/src/page/Explore/Explore.svelte b/src/page/Explore/Explore.svelte
index cfc1114..639e417 100644
--- a/src/page/Explore/Explore.svelte
+++ b/src/page/Explore/Explore.svelte
@@ -2,9 +2,6 @@
import style from './style.module.scss';
import Jumper from 'svelte-loading-spinners/Jumper.svelte';
- import Icon from 'svelte-icons-pack/Icon.svelte';
- import VscArrowLeft from "svelte-icons-pack/vsc/VscArrowLeft";
-
import { invoke } from '@tauri-apps/api/tauri';
import { back } from '../../store/RouteStore';
@@ -39,12 +36,6 @@
-
-
-
-
Homeservers
@@ -89,11 +80,6 @@
{#each list as server}
-
{server.name}
diff --git a/src/store/RouteStore.ts b/src/store/RouteStore.ts
index 6f5d899..f179c4b 100644
--- a/src/store/RouteStore.ts
+++ b/src/store/RouteStore.ts
@@ -40,7 +40,8 @@ export function route(path) {
export function back() {
const history: string[] = store.getState().history;
- console.log(history[history.length - 2]);
+ if (history[history.length - 2] == '/load') return
+
store.dispatch({ type: 'setPath', path: history[history.length - 2] });
store.dispatch({ type: 'popHistory' });
}
\ No newline at end of file
diff --git a/src/widget/Sidebar/Sidebar.svelte b/src/widget/Sidebar/Sidebar.svelte
index cb9c09b..69e099e 100644
--- a/src/widget/Sidebar/Sidebar.svelte
+++ b/src/widget/Sidebar/Sidebar.svelte
@@ -3,11 +3,17 @@
import Icon from 'svelte-icons-pack/Icon.svelte';
import VscHome from 'svelte-icons-pack/vsc/VscHome';
+ import VscArrowLeft from "svelte-icons-pack/vsc/VscArrowLeft";
import BsGearFill from 'svelte-icons-pack/bs/BsGearFill';
- import { route } from '../../store/RouteStore';
+ import { route, back } from '../../store/RouteStore';
|