diff --git a/src/renderer/components/+catalog/catalog.tsx b/src/renderer/components/+catalog/catalog.tsx index b5a2a3aa2b..89d2fc4a24 100644 --- a/src/renderer/components/+catalog/catalog.tsx +++ b/src/renderer/components/+catalog/catalog.tsx @@ -27,7 +27,7 @@ export class Catalog extends React.Component { @observable private catalogEntityStore?: CatalogEntityStore; @observable.deep private contextMenu: CatalogEntityContextMenuContext; - componentDidMount() { + async componentDidMount() { this.contextMenu = { menuItems: [], navigate: (url: string) => navigate(url) @@ -37,12 +37,14 @@ export class Catalog extends React.Component { this.catalogEntityStore.watch() ]); - if (this.catalogEntityStore.items.length === 0) { - Notifications.info(<>Welcome!

Get started by associating one or more clusters to Lens

, { - timeout: 30_000, - id: "catalog-welcome" - }); - } + setTimeout(() => { + if (this.catalogEntityStore.items.length === 0) { + Notifications.info(<>Welcome!

Get started by associating one or more clusters to Lens

, { + timeout: 30_000, + id: "catalog-welcome" + }); + } + }, 2_000); } addToHotbar(item: CatalogEntityItem) {