Merge pull request #8361 from igrowp/fix-return

fix: return trabslateScahema函数
This commit is contained in:
wutong 2023-10-12 10:40:26 +08:00 committed by GitHub
commit 79728ddad4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -525,7 +525,7 @@ export default class FormulaControl extends React.Component<
// 对 schema 进行国际化翻译
if (this.appLocale && this.appCorpusData) {
translateSchema(
return translateSchema(
curRendererSchema,
this.appCorpusData,
(item: any) => item.__reactFiber || item.__reactProp // 在nextjs 13中window.document.body对象有__reactFiber__reactProp 两个子对象,递归遍历会导致死循环,因此过滤掉