@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/dist/index.mjs CHANGED
@@ -2658,7 +2658,10 @@ const translateActions = {
2658
2658
  title: "Translate fields...",
2659
2659
  onAction: () => {
2660
2660
  fieldTranslate.translationLoading || !documentId || (formStateRef.current && getConditionalMembers(formStateRef.current), openFieldTranslation({
2661
- document: docRef.current,
2661
+ document: {
2662
+ ...docRef.current,
2663
+ _id: documentId
2664
+ },
2662
2665
  documentSchema: documentSchemaType,
2663
2666
  translatePath: path,
2664
2667
  conditionalMembers: formStateRef.current ? getConditionalMembers(formStateRef.current, maxDepth2) : []