sanity 5.7.0-next.22 → 5.7.0-next.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var version = "5.7.0-next.22+afe18d4413", peerDependencies = {
1
+ var version = "5.7.0-next.24+1af0e35075", peerDependencies = {
2
2
  "styled-components": "^6.1.15"
3
3
  };
4
4
  export {
@@ -12496,7 +12496,11 @@ function getPathTitles(options) {
12496
12496
  return result;
12497
12497
  if (!isRecord(v))
12498
12498
  throw new Error(`Array item not found: [_key == ${segment._key}]`);
12499
- const ofType = s.of.find((i) => isRecord(v) && i.name === v?._type);
12499
+ let ofType = s.of.find((i) => isRecord(v) && i.name === v?._type);
12500
+ if (!ofType && !v?._type) {
12501
+ const objectTypes = s.of.filter((i) => i.jsonType === "object");
12502
+ objectTypes.length === 1 && (ofType = objectTypes[0]);
12503
+ }
12500
12504
  if (!ofType)
12501
12505
  throw new Error(`Array item type not found: .${v?._type}`);
12502
12506
  s = ofType, result.push(s);