Fix add field for types to work with dbToTypes

This commit is contained in:
1ilit
2024-06-27 11:34:21 +03:00
parent d79b0c205d
commit 259835892a
2 changed files with 26 additions and 6 deletions

View File

@@ -268,7 +268,7 @@ export default function ControlPanel({
if (a.component === "field_add") {
updateType(a.tid, {
fields: types[a.tid].fields.filter(
(e, i) => i !== types[a.tid].fields.length - 1,
(_, i) => i !== types[a.tid].fields.length - 1,
),
});
}