From 59ab65e43aa850a83e1b6e26e5f09071552ba285 Mon Sep 17 00:00:00 2001 From: corrado lombardi Date: Fri, 30 Dec 2022 22:11:00 +0100 Subject: [PATCH] [DSC-802] updated check for tab validity --- src/app/item-page/cris-item-page-tab.resolver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/item-page/cris-item-page-tab.resolver.ts b/src/app/item-page/cris-item-page-tab.resolver.ts index 4523c9d918e..5efc7d311f3 100644 --- a/src/app/item-page/cris-item-page-tab.resolver.ts +++ b/src/app/item-page/cris-item-page-tab.resolver.ts @@ -45,7 +45,7 @@ export class CrisItemPageTabResolver implements Resolve `/${tab.shortname}` === urlSplit[1])) { + if (!!tabsRD.payload && !!tabsRD.payload.page && tabsRD.payload.page.length > 0 && !urlSplit[1]) { const selectedTab = tabsRD.payload.page.filter((tab) => !tab.leading)[0]; if (!!selectedTab) { let tabName = selectedTab.shortname;