From 019174a8a03bbd12b34738a7ffe01227416d46dd Mon Sep 17 00:00:00 2001 From: amlannandy Date: Wed, 8 Jan 2025 18:51:41 +0530 Subject: [PATCH] fix: resolve k8s pods list local storage issue --- frontend/src/container/InfraMonitoringK8s/Pods/K8sPodLists.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/container/InfraMonitoringK8s/Pods/K8sPodLists.tsx b/frontend/src/container/InfraMonitoringK8s/Pods/K8sPodLists.tsx index abf257ae5d..3ea8bda71a 100644 --- a/frontend/src/container/InfraMonitoringK8s/Pods/K8sPodLists.tsx +++ b/frontend/src/container/InfraMonitoringK8s/Pods/K8sPodLists.tsx @@ -105,7 +105,7 @@ function K8sPodsList({ ); useEffect(() => { - const addedColumns = JSON.parse(get('k8sPodsAddedColumns') ?? ''); + const addedColumns = JSON.parse(get('k8sPodsAddedColumns') ?? '[]'); if (addedColumns && addedColumns.length > 0) { const availableColumns = defaultAvailableColumns.filter(