fix(cms): fix serverFunction type for Payload 3.81 compatibility

This commit is contained in:
2026-04-06 15:46:06 +02:00
parent 575770e142
commit bc111ce8d3

View File

@@ -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 });
};