Skip to content

Commit 7fa68d1

Browse files
authored
fix(ui): wrong block indication when an error occurred (#7963)
1 parent 9ec431a commit 7fa68d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ui/src/fields/Blocks/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ const BlocksFieldComponent: React.FC<BlockFieldProps> = (props) => {
284284

285285
if (blockToRender) {
286286
const rowErrorCount = errorPaths.filter((errorPath) =>
287-
errorPath.startsWith(`${path}.${i}`),
287+
errorPath.startsWith(`${path}.${i}.`),
288288
).length
289289
return (
290290
<DraggableSortableItem disabled={disabled || !isSortable} id={row.id} key={row.id}>

0 commit comments

Comments
 (0)