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