diff --git a/studio/schemas/documents/compensations.ts b/studio/schemas/documents/compensations.ts index 3ed19df20..3ddb37ada 100644 --- a/studio/schemas/documents/compensations.ts +++ b/studio/schemas/documents/compensations.ts @@ -50,7 +50,7 @@ const compensations = defineType({ */ ...[...Array(LOCATIONS_PREVIEW_CUTOFF + 1).keys()].reduce( (o, i) => ({ ...o, [`location${i}`]: `locations.${i}.basicTitle` }), - {} + {}, ), }, prepare({ title, ...locationsMap }) { @@ -58,7 +58,7 @@ const compensations = defineType({ title, subtitle: previewStringFromLocationsMap( locationsMap, - LOCATIONS_PREVIEW_CUTOFF + LOCATIONS_PREVIEW_CUTOFF, ), }; }, @@ -76,10 +76,10 @@ function previewStringFromLocationsMap( locationsMap: { [key: string]: string; }, - cutoff: number + cutoff: number, ): string | undefined { const locations = Object.values(locationsMap).filter( - (o) => o !== undefined + (o) => o !== undefined, ); if (locations.length === 0) { return undefined;