Skip to content

Commit 1ec4e54

Browse files
committed
rename
1 parent a854267 commit 1ec4e54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/compass-data-modeling/src/components/drawer/field-drawer-content.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export function getIsFieldNameValid(
7474
};
7575
}
7676

77-
const fieldsNamesWithoutCurrent = existingFields
77+
const siblingFields = existingFields
7878
.filter(
7979
(fieldPath) =>
8080
fieldPath.length === currentFieldPath.length &&
@@ -86,7 +86,7 @@ export function getIsFieldNameValid(
8686
)
8787
.map((fieldPath) => fieldPath[fieldPath.length - 1]);
8888

89-
const isDuplicate = fieldsNamesWithoutCurrent.some(
89+
const isDuplicate = siblingFields.some(
9090
(fieldName) => fieldName === trimmedName
9191
);
9292

0 commit comments

Comments
 (0)