mirror of
https://github.com/docmost/docmost.git
synced 2026-08-28 17:27:06 +08:00
feat: kanban view
This commit is contained in:
@@ -58,8 +58,8 @@ export function useConvertPageToBaseMutation() {
|
||||
const [, setTreeData] = useAtom(treeDataAtom);
|
||||
const [socket] = useAtom(socketAtom);
|
||||
|
||||
return useMutation<IBase, Error, { pageId: string }>({
|
||||
mutationFn: ({ pageId }) => convertPageToBase(pageId),
|
||||
return useMutation<IBase, Error, { pageId: string; template?: "kanban" }>({
|
||||
mutationFn: ({ pageId, template }) => convertPageToBase(pageId, template),
|
||||
onSuccess: (base) => {
|
||||
queryClient.invalidateQueries({ queryKey: ["pages"] });
|
||||
queryClient.invalidateQueries({
|
||||
|
||||
Reference in New Issue
Block a user