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