@tinacms/app 1.2.17 → 1.2.19

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @tinacms/app
2
2
 
3
+ ## 1.2.19
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [f6efd498e]
8
+ - @tinacms/toolkit@1.7.8
9
+ - tinacms@1.5.12
10
+
11
+ ## 1.2.18
12
+
13
+ ### Patch Changes
14
+
15
+ - 1176d569a: Ensure tinaField links to references land on the select field instead of the referenced form
16
+ - Updated dependencies [c7fa6ddc0]
17
+ - Updated dependencies [8710dec4b]
18
+ - Updated dependencies [6e192cc38]
19
+ - Updated dependencies [5aaae9902]
20
+ - tinacms@1.5.11
21
+ - @tinacms/toolkit@1.7.7
22
+ - @tinacms/mdx@1.3.13
23
+
3
24
  ## 1.2.17
4
25
 
5
26
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/app",
3
- "version": "1.2.17",
3
+ "version": "1.2.19",
4
4
  "main": "src/main.tsx",
5
5
  "license": "Apache-2.0",
6
6
  "devDependencies": {
@@ -13,8 +13,8 @@
13
13
  "@headlessui/react": "1.6.6",
14
14
  "@heroicons/react": "1.0.6",
15
15
  "@monaco-editor/react": "4.4.5",
16
- "@tinacms/mdx": "1.3.12",
17
- "@tinacms/toolkit": "1.7.6",
16
+ "@tinacms/mdx": "1.3.13",
17
+ "@tinacms/toolkit": "1.7.8",
18
18
  "@xstate/react": "3.0.0",
19
19
  "final-form": "4.20.7",
20
20
  "graphiql": "^2.4.0",
@@ -27,7 +27,7 @@
27
27
  "react-is": "17.0.2",
28
28
  "react-router-dom": "6.3.0",
29
29
  "tailwindcss": "^3.2.7",
30
- "tinacms": "1.5.10",
30
+ "tinacms": "1.5.12",
31
31
  "typescript": "^4.6.4",
32
32
  "zod": "^3.14.3"
33
33
  }
package/src/lib/util.ts CHANGED
@@ -93,7 +93,12 @@ export const getDeepestMetadata = (state: Object, complexKey: string): any => {
93
93
  }
94
94
  const value = current[key]
95
95
  if (value?._tina_metadata) {
96
- metadata = value._tina_metadata
96
+ // We're at a reference field, we don't want to select the
97
+ // reference form, just the reference select field
98
+ if (complexKey === value._tina_metadata?.prefix && metadata) {
99
+ } else {
100
+ metadata = value._tina_metadata
101
+ }
97
102
  }
98
103
  current = value
99
104
  }