From d1ed33b5327c56f101e42c07dfae73e86538c314 Mon Sep 17 00:00:00 2001 From: daniel31x13 Date: Tue, 30 Jul 2024 14:59:18 -0400 Subject: [PATCH] bug fix --- store/links.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/store/links.ts b/store/links.ts index c2c3a8a1..db9a1fc8 100644 --- a/store/links.ts +++ b/store/links.ts @@ -4,7 +4,6 @@ import { LinkIncludingShortenedCollectionAndTags, } from "@/types/global"; import useTagStore from "./tags"; -import useCollectionStore from "./collections"; type ResponseObject = { ok: boolean; @@ -81,7 +80,6 @@ const useLinkStore = create()((set) => ({ links: [data.response, ...state.links], })); useTagStore.getState().setTags(); - useCollectionStore.getState().setCollections(); } return { ok: response.ok, data: data.response }; @@ -157,7 +155,6 @@ const useLinkStore = create()((set) => ({ ], })); useTagStore.getState().setTags(); - useCollectionStore.getState().setCollections(); } return { ok: response.ok, data: data.response }; @@ -213,7 +210,6 @@ const useLinkStore = create()((set) => ({ ), })); useTagStore.getState().setTags(); - useCollectionStore.getState().setCollections(); } return { ok: response.ok, data: data.response }; @@ -248,7 +244,6 @@ const useLinkStore = create()((set) => ({ ), })); useTagStore.getState().setTags(); - useCollectionStore.getState().setCollections(); } return { ok: response.ok, data: data.response }; @@ -268,7 +263,6 @@ const useLinkStore = create()((set) => ({ links: state.links.filter((e) => e.id !== linkId), })); useTagStore.getState().setTags(); - useCollectionStore.getState().setCollections(); } return { ok: response.ok, data: data.response }; @@ -289,7 +283,6 @@ const useLinkStore = create()((set) => ({ links: state.links.filter((e) => !linkIds.includes(e.id as number)), })); useTagStore.getState().setTags(); - useCollectionStore.getState().setCollections(); } return { ok: response.ok, data: data.response };