From eb2464db20b9256d29df3199838075d93e28d631 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 29 Apr 2023 00:47:04 +0330 Subject: [PATCH] small fix --- store/collections.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/store/collections.ts b/store/collections.ts index c180e6dc..c0c0663b 100644 --- a/store/collections.ts +++ b/store/collections.ts @@ -6,6 +6,7 @@ import { create } from "zustand"; import { ExtendedCollection, NewCollection } from "@/types/global"; import useTagStore from "./tags"; +import useLinkStore from "./links"; type CollectionStore = { collections: ExtendedCollection[]; @@ -86,6 +87,7 @@ const useCollectionStore = create()((set) => ({ collections: state.collections.filter((e) => e.id !== id), })); useTagStore.getState().setTags(); + useLinkStore.getState().setLinks(); } return response.ok;