small fix

This commit is contained in:
Daniel 2023-04-29 00:47:04 +03:30
parent 8b7a660766
commit eb2464db20

View File

@ -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<CollectionStore>()((set) => ({
collections: state.collections.filter((e) => e.id !== id),
}));
useTagStore.getState().setTags();
useLinkStore.getState().setLinks();
}
return response.ok;