fix: 临时修复,模板第一次进入无法加载 (#655)

Reviewed-on: daoyoucloud/tachycode#655
Co-authored-by: bai.jingfeng <bai.jingfeng@foxmail.com>
Co-committed-by: bai.jingfeng <bai.jingfeng@foxmail.com>
This commit is contained in:
bai.jingfeng 2024-04-09 20:20:48 +08:00 committed by sealday
parent 110143d91b
commit a329ab5727
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"@nocobase/client": patch
---
Fixme: 临时修复,模板类型关系字段,第一次进入无法加载数据

View File

@ -73,7 +73,8 @@ export const SchemaComponentProvider: React.FC<ISchemaComponentProvider> = (prop
); );
return ( return (
<SchemaComponentContext.Provider value={schemaComponentContextValue}> // TODO: 临时修复,处理模板类型的关联数据第一次进入无法加载
<SchemaComponentContext.Provider value={{ ...schemaComponentContextValue }}>
<FormProvider form={form}> <FormProvider form={form}>
<SchemaComponentOptions inherit scope={scope} components={components}> <SchemaComponentOptions inherit scope={scope} components={components}>
{children} {children}