From f1516505d4fa22421052bbeed090092292fb1547 Mon Sep 17 00:00:00 2001 From: Vikhyath Mondreti Date: Tue, 20 Jan 2026 15:33:56 -0800 Subject: [PATCH] cleanup comments --- apps/sim/executor/variables/resolvers/block.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/apps/sim/executor/variables/resolvers/block.ts b/apps/sim/executor/variables/resolvers/block.ts index 0a4d46f3d..09904eed5 100644 --- a/apps/sim/executor/variables/resolvers/block.ts +++ b/apps/sim/executor/variables/resolvers/block.ts @@ -65,19 +65,14 @@ function isPathInOutputSchema( continue } - // Handle array index access (e.g., [0]) if (/^\d+$/.test(part)) { - // If current is file[] type, next part should be a file property if (isFileArrayType(current)) { - // Check if next part is a valid file property if (i + 1 < pathParts.length) { const nextPart = pathParts[i + 1] return USER_FILE_ACCESSIBLE_PROPERTIES.includes(nextPart as any) } - // If no next part, array index access is valid return true } - // For other array types, continue to next iteration continue } @@ -85,13 +80,10 @@ function isPathInOutputSchema( return false } - // Check if part exists in current if (part in current) { const nextCurrent = current[part] - // If next field is file[] type and we have more parts, check if next part is numeric if (nextCurrent?.type === 'file[]' && i + 1 < pathParts.length) { const nextPart = pathParts[i + 1] - // If next part is numeric (array index), allow it and check the part after if (/^\d+$/.test(nextPart) && i + 2 < pathParts.length) { const propertyPart = pathParts[i + 2] return USER_FILE_ACCESSIBLE_PROPERTIES.includes(propertyPart as any) @@ -117,9 +109,7 @@ function isPathInOutputSchema( } } - // Handle file[] type - allow access to file properties after array index if (isFileArrayType(current) && USER_FILE_ACCESSIBLE_PROPERTIES.includes(part as any)) { - // Valid file property access return true }