mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-02-12 02:00:40 +08:00
Fix add field for types to work with dbToTypes
This commit is contained in:
@@ -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,
|
||||
),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user