@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.js CHANGED
@@ -2651,7 +2651,10 @@ const translateActions = {
2651
2651
  title: "Translate fields...",
2652
2652
  onAction: () => {
2653
2653
  fieldTranslate.translationLoading || !documentId || (formStateRef.current && getConditionalMembers(formStateRef.current), openFieldTranslation({
2654
- document: docRef.current,
2654
+ document: {
2655
+ ...docRef.current,
2656
+ _id: documentId
2657
+ },
2655
2658
  documentSchema: documentSchemaType,
2656
2659
  translatePath: path,
2657
2660
  conditionalMembers: formStateRef.current ? getConditionalMembers(formStateRef.current, maxDepth2) : []