mirror of
https://github.com/docmost/docmost.git
synced 2026-08-30 02:25:01 +08:00
fix refetch
This commit is contained in:
@@ -147,7 +147,10 @@ export function useCreateRowMutation() {
|
|||||||
);
|
);
|
||||||
const base = queryClient.getQueryData<IBase>(["bases", newRow.pageId]);
|
const base = queryClient.getQueryData<IBase>(["bases", newRow.pageId]);
|
||||||
if ((base?.views ?? []).some((v) => v.type === "kanban")) {
|
if ((base?.views ?? []).some((v) => v.type === "kanban")) {
|
||||||
invalidateBaseRows(newRow.pageId);
|
queryClient.invalidateQueries({
|
||||||
|
queryKey: ["base-rows", newRow.pageId],
|
||||||
|
refetchType: "none",
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onError: (error) => {
|
onError: (error) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user