Skip to content

Commit

Permalink
docs(compensations): reword locations preview comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiazom committed Sep 3, 2024
1 parent 6e31247 commit c19f790
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions studio/schemas/documents/compensations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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` }),
Expand Down

0 comments on commit c19f790

Please sign in to comment.