fixing condition where entity has been created with empty label

This commit is contained in:
dswbx
2024-12-11 18:48:57 +01:00
parent 35959aaf6d
commit 25027429df
2 changed files with 11 additions and 9 deletions

View File

@@ -158,7 +158,7 @@ export class Entity<
}
get label(): string {
return snakeToPascalWithSpaces(this.config.name ?? this.name);
return snakeToPascalWithSpaces(this.config.name || this.name);
}
field(name: string): Field | undefined {