@contentful/field-editor-reference 5.1.2 → 5.1.3

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.
@@ -2047,8 +2047,10 @@ function _fetchContentfulEntry() {
2047
2047
  }
2048
2048
 
2049
2049
  var _constate = /*#__PURE__*/constate(function useInitServices(props) {
2050
+ var _props$sdk$ids$enviro;
2051
+
2050
2052
  var currentSpaceId = props.sdk.ids.space;
2051
- var currentEnvironmentId = props.sdk.ids.environment;
2053
+ var currentEnvironmentId = (_props$sdk$ids$enviro = props.sdk.ids.environmentAlias) != null ? _props$sdk$ids$enviro : props.sdk.ids.environment;
2052
2054
  var queryClient = useQueryClient();
2053
2055
  var queryCache = queryClient.getQueryCache();
2054
2056
  var entityChangeUnsubscribers = useRef({});