From 27711bd8be75136de1ad9924b87ae3cda7263686 Mon Sep 17 00:00:00 2001 From: Parthiv Krishnan Date: Wed, 19 Aug 2026 10:32:42 -0400 Subject: [PATCH] OCPBUGS-86249: fixed edit pod selector --- src/utils/components/PodSelectorModal/selectorUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/components/PodSelectorModal/selectorUtils.ts b/src/utils/components/PodSelectorModal/selectorUtils.ts index d37c5c1e..dbfc1678 100644 --- a/src/utils/components/PodSelectorModal/selectorUtils.ts +++ b/src/utils/components/PodSelectorModal/selectorUtils.ts @@ -6,8 +6,8 @@ import { selectorToString } from '../Selector/utilts'; import { requirementFromString } from './selectorRequirements'; import { FromRequirementsOptions, Requirement } from './types'; -export const arrayify = (obj: any): string[] => - Object.entries(obj).map(([key, value]) => (value ? `${key}=${value}` : key)); +export const arrayify = (obj?: null | Record): string[] => + Object.entries(obj ?? {}).map(([key, value]) => (value ? `${key}=${value}` : key)); export const objectify = (arr: string[]): Record => arr.reduce((acc, item) => {