diff --git a/public/src/components/SharePanel/SharePanel.tsx b/public/src/components/SharePanel/SharePanel.tsx index a13aca3e..7d9906f6 100644 --- a/public/src/components/SharePanel/SharePanel.tsx +++ b/public/src/components/SharePanel/SharePanel.tsx @@ -1,5 +1,4 @@ import {ScReact} from "@veglem/screact"; -import {Button} from "../Button/Button"; import "./SharePanel.sass" import {ToggleButton} from "../ToggleButton/ToggleButton"; import {Img} from "../Image/Image"; diff --git a/public/src/modules/stores/NotesStore.ts b/public/src/modules/stores/NotesStore.ts index d37db370..80f20fab 100644 --- a/public/src/modules/stores/NotesStore.ts +++ b/public/src/modules/stores/NotesStore.ts @@ -120,6 +120,8 @@ class NotesStore extends BaseStore { AppNotesStore.ClearCallbacks() AppNoteStore.ClearCallbacks() + this.invitesWS?.close(); + this.SetState(state => ({ ...state, notes: [],