1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Wait for general entites to load

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2021-09-02 16:15:04 +03:00
parent e3f5bd219b
commit c4c5a18e9e

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})
]);
this.setActiveEntity();
}
componentWillUnmount() {