mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
chore: 预加载组件时容忍对应组件没找到
This commit is contained in:
parent
50ff14de1b
commit
10eb9590c9
@ -65,7 +65,7 @@ export class RootRenderer extends React.Component<RootRendererProps> {
|
||||
}
|
||||
}
|
||||
});
|
||||
return loadAsyncRenderersByType(types);
|
||||
return loadAsyncRenderersByType(types, true);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -310,7 +310,9 @@ export async function loadAsyncRenderer(renderer: RendererConfig) {
|
||||
|
||||
export function isAsyncRenderer(item: RendererConfig) {
|
||||
return (
|
||||
(!item.component || item.component === Placeholder) && item.getComponent
|
||||
item &&
|
||||
(!item.component || item.component === Placeholder) &&
|
||||
item.getComponent
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user