Fix type self-referencing

This commit is contained in:
1ilit
2025-10-09 23:11:34 +04:00
parent ef2b113b1e
commit 2b852269a3

View File

@@ -78,7 +78,7 @@ export default function TypeField({ data, tid, fid }) {
})),
...types
.filter(
(type) => type.name.toLowerCase() !== data.name.toLowerCase(),
(type) => type.name.toLowerCase() !== types[tid].name.toLowerCase(),
)
.map((type) => ({
label: type.name.toUpperCase(),