small fix
This commit is contained in:
parent
8b7a660766
commit
eb2464db20
|
@ -6,6 +6,7 @@
|
||||||
import { create } from "zustand";
|
import { create } from "zustand";
|
||||||
import { ExtendedCollection, NewCollection } from "@/types/global";
|
import { ExtendedCollection, NewCollection } from "@/types/global";
|
||||||
import useTagStore from "./tags";
|
import useTagStore from "./tags";
|
||||||
|
import useLinkStore from "./links";
|
||||||
|
|
||||||
type CollectionStore = {
|
type CollectionStore = {
|
||||||
collections: ExtendedCollection[];
|
collections: ExtendedCollection[];
|
||||||
|
@ -86,6 +87,7 @@ const useCollectionStore = create<CollectionStore>()((set) => ({
|
||||||
collections: state.collections.filter((e) => e.id !== id),
|
collections: state.collections.filter((e) => e.id !== id),
|
||||||
}));
|
}));
|
||||||
useTagStore.getState().setTags();
|
useTagStore.getState().setTags();
|
||||||
|
useLinkStore.getState().setLinks();
|
||||||
}
|
}
|
||||||
|
|
||||||
return response.ok;
|
return response.ok;
|
||||||
|
|
Ŝarĝante…
Reference in New Issue