Skip to content

Commit 2b85226

Browse files
committed
Fix type self-referencing
1 parent ef2b113 commit 2b85226

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/EditorSidePanel/TypesTab/TypeField.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default function TypeField({ data, tid, fid }) {
7878
})),
7979
...types
8080
.filter(
81-
(type) => type.name.toLowerCase() !== data.name.toLowerCase(),
81+
(type) => type.name.toLowerCase() !== types[tid].name.toLowerCase(),
8282
)
8383
.map((type) => ({
8484
label: type.name.toUpperCase(),

0 commit comments

Comments
 (0)