diff --git a/server/src/database/helpers.ts b/server/src/database/helpers.ts index 5f90b9ce..a99409fa 100644 --- a/server/src/database/helpers.ts +++ b/server/src/database/helpers.ts @@ -350,7 +350,7 @@ export default class DatabaseHelpers { const newNames: string[] = [ ]; for(const oldName in rename) { - if(rename[oldName].name) { + if(rename[oldName].name && object.data[oldName] != null) { newData[rename[oldName].name!] = object.data[oldName]; newNames.push(rename[oldName].name!); if(!newNames.includes(oldName))