fix: 保存区块按钮渲染异常

This commit is contained in:
mario.gk 2020-08-06 16:16:46 +08:00
parent 2960446197
commit 33a7227a13

View File

@ -564,7 +564,7 @@ export function upgradeActions(actions?: Array<ComponentType<any> | ReactElement
if (typeof content === 'function') {
const fn = content as () => ReactElement;
content = (({ node }: any) => {
fn.call(node);
return fn.call(node);
}) as any;
}
return {