diff --git a/src/app/target/infrastructure/TargetParser.ts b/src/app/target/infrastructure/TargetParser.ts index 4fda0c0..82cebd8 100644 --- a/src/app/target/infrastructure/TargetParser.ts +++ b/src/app/target/infrastructure/TargetParser.ts @@ -11,6 +11,7 @@ export class TargetParser { toDomain( response: TargetListApiResponse | TargetEditApiResponse ): Result { + // prettier-ignore try { const target = new Target({ id: response.id, @@ -19,7 +20,7 @@ export class TargetParser { radius: response.radius, dec: response.dec, ra: response.ra, - filter: response.filter ? response.filter : { fields: {}, filters: [] }, + filter: response.filter ? response.filter : { "fields": {}, "filters": [] }, nMatches: "n_matches" in response ? response.n_matches : 0, lastMatch: "last_match" in response ? response.last_match : "", });