Do not crash the whole UI when loading an invalid column
parent
76603a189a
commit
c0675a272e
|
@ -52,6 +52,11 @@ class Bundle extends React.Component {
|
|||
load = (props) => {
|
||||
const { fetchComponent, onFetch, onFetchSuccess, onFetchFail, renderDelay } = props || this.props;
|
||||
|
||||
if (fetchComponent === undefined) {
|
||||
this.setState({ mod: null });
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
onFetch();
|
||||
|
||||
if (Bundle.cache[fetchComponent.name]) {
|
||||
|
|
Loading…
Reference in New Issue