From c19f790b1addea286b1de830ec5d0bf54ee1f9ae Mon Sep 17 00:00:00 2001 From: Mathias Oterhals Myklebust Date: Tue, 3 Sep 2024 12:31:14 +0200 Subject: [PATCH] docs(compensations): reword locations preview comment --- studio/schemas/documents/compensations.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/studio/schemas/documents/compensations.ts b/studio/schemas/documents/compensations.ts index 8a652d0a3..44d57f3c5 100644 --- a/studio/schemas/documents/compensations.ts +++ b/studio/schemas/documents/compensations.ts @@ -38,9 +38,9 @@ const compensations = defineType({ select: { title: "basicTitle", /* - Array object values are accessed with dot notation and array index: "locations.0.basicTitle" - This limits the preview to only select a subset of the array - https://www.sanity.io/docs/previews-list-views#62febb15a63a + Access array object values using dot notation with the array index, e.g., "locations.0.basicTitle". + This approach allows selecting a subset of the array for preview purposes. + For more details, see: https://www.sanity.io/docs/previews-list-views#62febb15a63a */ ...[...Array(LOCATIONS_PREVIEW_CUTOFF + 1).keys()].reduce( (o, i) => ({ ...o, [`location${i}`]: `locations.${i}.basicTitle` }),