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 <stitch14@yandex.ru>
This commit is contained in:
Kirill Ilin committed 2026-03-19 11:24:16 +05:00
1 parent 8285191fb1
commit c7509ab4c6
1 file changed
+1 -1
@@ -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 {