From c7509ab4c66ea945176548bdbb7ee23282ca048f Mon Sep 17 00:00:00 2001 From: Kirill Ilin Date: Thu, 19 Mar 2026 11:24:16 +0500 Subject: [PATCH] fix(dashboard): align regex with existing pattern in toolkit Use [^\]]+ (same as existing code in utils.ts) instead of [^[\]]+ for consistency. Assisted-By: Claude AI Signed-off-by: Kirill Ilin --- .../patches/flatmap-unresolved-placeholder.diff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/system/dashboard/images/openapi-ui/openapi-k8s-toolkit/patches/flatmap-unresolved-placeholder.diff b/packages/system/dashboard/images/openapi-ui/openapi-k8s-toolkit/patches/flatmap-unresolved-placeholder.diff index df5856ee2..dceea4240 100644 --- a/packages/system/dashboard/images/openapi-ui/openapi-k8s-toolkit/patches/flatmap-unresolved-placeholder.diff +++ b/packages/system/dashboard/images/openapi-ui/openapi-k8s-toolkit/patches/flatmap-unresolved-placeholder.diff @@ -7,7 +7,7 @@ diff --git a/src/components/molecules/EnrichedTable/organisms/EnrichedTableProvi } - const jpQueryResult = jp.query(el, `$${resolvedJsonPath}`) - fieldValue = Array.isArray(jpQueryResult) && jpQueryResult.length === 1 ? jpQueryResult[0] : jpQueryResult -+ if (/_flatMap[^[\]]+_Key/.test(resolvedJsonPath)) { ++ if (/_flatMap[^\]]+_Key/.test(resolvedJsonPath)) { + // Placeholder was not resolved (row not yet expanded or key missing) — skip query + fieldValue = null + } else {