unit/#107-damage-reports #125
2 changed files with 2 additions and 2 deletions
|
@ -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(",");
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue