@sanity/document-internationalization 0.3.2 → 0.3.5

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.
@@ -1831,7 +1831,7 @@ function createSanityReference(id) {
1831
1831
  var weak = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1832
1832
  return _objectSpread$2({
1833
1833
  _type: 'reference',
1834
- _ref: id
1834
+ _ref: id.replace("drafts.", "")
1835
1835
  }, weak === true ? {
1836
1836
  _weak: true
1837
1837
  } : {});