mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-09 14:02:56 +09:00
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:
1 file changed
+1
-1
+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 {
|
||||
|
||||
Reference in new issue
Block a user