Studio: more fixes

This commit is contained in:
Pieter Vander Vennet 2023-10-16 15:06:50 +02:00
parent 3ceebaba12
commit 80b7a038cf
7 changed files with 129 additions and 77 deletions

View file

@ -177,7 +177,12 @@ export default class EditLayerState {
}
entry = entry[breadcrumb]
}
if (v !== undefined && v !== null && v !== "") {
if (
v !== undefined &&
v !== null &&
v !== "" &&
!(typeof v === "object" && Object.keys({}).length === 0)
) {
entry[path.at(-1)] = v
} else if (entry) {
delete entry[path.at(-1)]