unit/#107-damage-reports #125

Merged
jkeffects merged 6 commits from unit/#107-damage-reports into milestone/ff-admin-unit 2025-07-17 08:50:18 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit ca1ca9edc8 - Show all commits

View file

@ -31,7 +31,7 @@ export class damageReport {
type: "text",
transformer: {
from(value: string): Array<string> {
return value.split(",");
return value.split(",").filter((i) => !!i);
},
to(value: Array<string>): string {
return value.join(",");

View file

@ -47,7 +47,7 @@ export default abstract class DamageReportFactory {
description: record.description,
location: record.location,
note: record.note,
images: record.images.filter((i) => !!i),
images: record.images,
reportedBy: record?.reportedBy,
...assigned,
maintenance: record.maintenance ? MaintenanceFactory.mapToSingle(record.maintenance) : null,