diff --git a/package-lock.json b/package-lock.json index 855a23a09..cda3702a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -42475,7 +42475,7 @@ }, "packages/chrome": { "name": "@redhat-cloud-services/chrome", - "version": "1.0.5", + "version": "1.0.6", "license": "Apache-2.0", "dependencies": { "lodash": "^4.17.21" @@ -42494,7 +42494,7 @@ }, "packages/components": { "name": "@redhat-cloud-services/frontend-components", - "version": "4.2.1", + "version": "4.2.3", "license": "Apache-2.0", "dependencies": { "@patternfly/react-component-groups": "^5.0.0", @@ -42591,7 +42591,7 @@ }, "packages/config-utils": { "name": "@redhat-cloud-services/frontend-components-config-utilities", - "version": "3.0.4", + "version": "3.0.5", "license": "Apache-2.0", "dependencies": { "@openshift/dynamic-plugin-sdk-webpack": "^4.0.1", @@ -43723,7 +43723,7 @@ }, "packages/tsc-transform-imports": { "name": "@redhat-cloud-services/tsc-transform-imports", - "version": "1.0.5", + "version": "1.0.7", "dependencies": { "glob": "10.3.3" }, diff --git a/packages/chrome/src/useLastVisited/useLastVisited.ts b/packages/chrome/src/useLastVisited/useLastVisited.ts index ab7443087..ba861d057 100644 --- a/packages/chrome/src/useLastVisited/useLastVisited.ts +++ b/packages/chrome/src/useLastVisited/useLastVisited.ts @@ -13,7 +13,7 @@ const useLastVisited = () => { unsubscribe(subsId, UpdateEvents.lastVisited); }; }, []); - return getState().lastVisitedPages; + return getState().lastVisitedPages ?? []; }; export default useLastVisited;