fix(cms): fix serverFunction type for Payload 3.81 compatibility
This commit is contained in:
@@ -15,7 +15,7 @@ type Args = {
|
|||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
};
|
};
|
||||||
|
|
||||||
const serverFunction: typeof handleServerFunctions = async (args) => {
|
const serverFunction = async (args: any) => {
|
||||||
"use server";
|
"use server";
|
||||||
return handleServerFunctions({ ...args, config, importMap });
|
return handleServerFunctions({ ...args, config, importMap });
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user