@sanity/assist 4.0.1 → 4.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/assist",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "You create the instructions; Sanity AI Assist does the rest.",
5
5
  "keywords": [
6
6
  "sanity",
@@ -148,7 +148,10 @@ export const translateActions: DocumentFieldAction = {
148
148
  getConditionalMembers(formStateRef.current)
149
149
  }
150
150
  openFieldTranslation({
151
- document: docRef.current,
151
+ document: {
152
+ ...docRef.current,
153
+ _id: documentId,
154
+ },
152
155
  documentSchema: documentSchemaType,
153
156
  translatePath: path,
154
157
  conditionalMembers: formStateRef.current