fix: use noop function instead

This commit is contained in:
LeoYuan 袁力皓 2023-05-04 17:01:02 +08:00 committed by 林熠
parent 4db1971c3f
commit 57889d5ad0

View File

@ -58,7 +58,7 @@ const pluginFactory: BuilderComponentPluginFactory<PluginConfig> = (config?) =>
generateCompositeType( generateCompositeType(
{ {
type: 'JSFunction', type: 'JSFunction',
value: input.value || 'null', value: input.value || 'function () {}',
}, },
Scope.createRootScope(), Scope.createRootScope(),
), ),