mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-29 00:20:04 +01:00
web: remove unnecessary code
This commit is contained in:
@@ -54,7 +54,6 @@ export default function AppEffects({ setShow }) {
|
||||
const addReminder = useStore((store) => store.addReminder);
|
||||
const initUser = useUserStore((store) => store.init);
|
||||
const initStore = useStore((store) => store.init);
|
||||
const initNotes = useNotesStore((store) => store.init);
|
||||
const initAttachments = useAttachmentStore((store) => store.init);
|
||||
const setIsVaultCreated = useStore((store) => store.setIsVaultCreated);
|
||||
const setTheme = useThemeStore((store) => store.setTheme);
|
||||
@@ -86,7 +85,6 @@ export default function AppEffects({ setShow }) {
|
||||
initStore();
|
||||
initAttachments();
|
||||
refreshNavItems();
|
||||
initNotes();
|
||||
initEditorStore();
|
||||
|
||||
(async function () {
|
||||
|
||||
@@ -44,15 +44,6 @@ class NoteStore extends BaseStore {
|
||||
Config.set("notes:viewMode", viewMode);
|
||||
};
|
||||
|
||||
init = () => {
|
||||
EV.subscribe(EVENTS.noteRemoved, (id) => {
|
||||
const { session } = editorStore.get();
|
||||
if (session.id === id) {
|
||||
hashNavigate("/notes/create", { addNonce: true });
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
setSelectedNote = (id) => {
|
||||
if (!id) selectionStore.get().toggleSelectionMode(false);
|
||||
this.set((state) => (state.selectedNote = id));
|
||||
|
||||
Reference in New Issue
Block a user