apostrophe 3.51.0 → 3.51.1

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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.51.1 (2023-06-23)
4
+
5
+ ## Fixes
6
+
7
+ * Fix a regression introduced in 3.51.0 - conditional fields work again in the array editor dialog box.
8
+
3
9
  ## 3.51.0 (2023-06-21)
4
10
 
5
11
  ### Adds
@@ -133,7 +133,8 @@ export default {
133
133
  return conditionalFields(
134
134
  this.schema,
135
135
  this.getFieldsByCategory(followedByCategory),
136
- this.docFields.data,
136
+ // currentDoc for arrays, docFields for all other editors
137
+ this.currentDoc ? this.currentDoc.data : this.docFields.data,
137
138
  this.externalConditionsResults
138
139
  );
139
140
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apostrophe",
3
- "version": "3.51.0",
3
+ "version": "3.51.1",
4
4
  "description": "The Apostrophe Content Management System.",
5
5
  "main": "index.js",
6
6
  "scripts": {