fix: HRM in dev

This commit is contained in:
jialin
2026-05-12 14:31:52 +08:00
committed by jialin
parent 5ef671f047
commit 2527555945
5 changed files with 21 additions and 22 deletions
+3 -2
View File
@@ -16,12 +16,13 @@ const PluginExtraFields: React.FC<{
// form-specific slot can pass its action / record context if it
// needs to.
context?: Record<string, any>;
}> = ({ name, context }) => {
[key: string]: any;
}> = ({ name, context, ...rest }) => {
const Slot = getGPUStackPlugin()?.components?.[name];
if (!Slot) {
return null;
}
return <Slot context={context} />;
return <Slot context={context} {...rest} />;
};
export default PluginExtraFields;