Fix mobx error after Edit Resource tab close (#5130)

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
Alex Andreev authored and Jim Ehrismann committed 2022-04-05 11:41:32 -04:00
1 parent adcf87e939
commit 8ebb0c4851
1 file changed
+1 -1
@@ -46,7 +46,7 @@ class NonInjectedEditResource extends React.Component<Props & Dependencies> {
const obj = this.resource;
if (!obj) {
if (store.isLoaded) {
if (store?.isLoaded) {
// auto-close tab when resource removed from store
this.props.closeTab(this.props.tab.id);
} else if (!store.isLoading) {