Skip to content

Commit

Permalink
Revert "fix(generator): compatibility with old data (#214)"
Browse files Browse the repository at this point in the history
This reverts commit 8aec201.
  • Loading branch information
mengshang918 committed Jun 8, 2022
1 parent 8aec201 commit 0d4be8f
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,10 @@ const PropertyConfig = () => {
const propertyConfigOptions = useRecoilValue(propertyConfigSelector)

useEffect(() => {
const globalTheme = generatorContext.current?.get('').uiSchema.theme
setThemeAndType(
uiSchema.type
? getThemeAndType({
...(!['object', 'array'].includes(uiSchema.type as string) && {
theme: globalTheme,
}),
...uiSchema,
} as UiSchema)
: 'root'
uiSchema.type ? getThemeAndType(uiSchema as UiSchema) : 'root'
)
}, [generatorContext, setThemeAndType, uiSchema, uiSchema.type])
}, [setThemeAndType, uiSchema, uiSchema.type])

/**
* 初始化配置数据
Expand Down

0 comments on commit 0d4be8f

Please sign in to comment.