fix: fixed an issue where materials would be rendered multiple times

This commit is contained in:
liujuping 2022-08-17 14:40:39 +08:00 committed by LeoYuan 袁力皓
parent 3e6cfa055c
commit 9d187ccb7d

View File

@ -349,7 +349,6 @@ export default function baseRendererFactory(): IBaseRenderComponent {
this.__dataHelper.getInitData() this.__dataHelper.getInitData()
.then((res: any) => { .then((res: any) => {
if (isEmpty(res)) { if (isEmpty(res)) {
this.forceUpdate();
return resolve({}); return resolve({});
} }
this.setState(res, resolve as () => void); this.setState(res, resolve as () => void);