fix: resolve k8s pods list local storage issue (#6775)

This commit is contained in:
Amlan Kumar Nandy 2025-01-08 19:37:08 +05:30 committed by GitHub
parent 3787c5ca24
commit 5839b65f7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(