Wait for general entites to load

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2021-09-02 16:15:04 +03:00
1 parent e3f5bd219b
commit c4c5a18e9e
1 file changed
+4 -1
+4 -1
View File
@@ -103,8 +103,11 @@ export class Catalog extends React.Component<Props> {
Notifications.error(<p>Unknown category: {routeTab}</p>);
}
}, {fireImmediately: true}),
]);
reaction(() => catalogEntityRegistry.getById("catalog-entity"), () => {
this.setActiveEntity();
}, {fireImmediately: true})
]);
}
componentWillUnmount() {