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 林熠
parent a9f15a7552
commit 64cc3283c1

View File

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