From 34f0df4cc8344c205ecbed091311b80510e7f788 Mon Sep 17 00:00:00 2001 From: Mathias Oterhals Myklebust Date: Tue, 3 Sep 2024 12:10:10 +0200 Subject: [PATCH] docs(compensations): remove explainer for preview truncation cutoff --- studio/schemas/documents/compensations.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/studio/schemas/documents/compensations.ts b/studio/schemas/documents/compensations.ts index 46e1a430c..f8f383e81 100644 --- a/studio/schemas/documents/compensations.ts +++ b/studio/schemas/documents/compensations.ts @@ -5,14 +5,7 @@ import locations from "../objects/locations"; import { title } from "../fields/text"; import { benefitId } from "./benefit"; -/* - maximum number of locations without preview string shortening - (should be at least 2) - given array: ["Trondheim", "Oslo", "Bergen", "Molde"] - 2 => Trondheim, and more - 3 => Trondheim, Oslo, and more - 4 => Trondheim, Oslo, Bergen, and Molde -*/ +// maximum number of locations to display in the preview without truncating const LOCATIONS_PREVIEW_CUTOFF = 3; export const compensationsId = "compensations";