@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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.1.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@5.1.2...@contentful/field-editor-reference@5.1.3) (2022-08-26)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **EntityStore:** respect environment alias ([#1223](https://github.com/contentful/field-editors/issues/1223)) ([f66a6b9](https://github.com/contentful/field-editors/commit/f66a6b994f107341251a0ea335457a6b0148439f))
11
+
6
12
  ## [5.1.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@5.1.1...@contentful/field-editor-reference@5.1.2) (2022-08-26)
7
13
 
8
14
  ### Bug Fixes
@@ -2054,8 +2054,10 @@ function _fetchContentfulEntry() {
2054
2054
  }
2055
2055
 
2056
2056
  var _constate = /*#__PURE__*/constate(function useInitServices(props) {
2057
+ var _props$sdk$ids$enviro;
2058
+
2057
2059
  var currentSpaceId = props.sdk.ids.space;
2058
- var currentEnvironmentId = props.sdk.ids.environment;
2060
+ var currentEnvironmentId = (_props$sdk$ids$enviro = props.sdk.ids.environmentAlias) != null ? _props$sdk$ids$enviro : props.sdk.ids.environment;
2059
2061
  var queryClient = reactQuery.useQueryClient();
2060
2062
  var queryCache = queryClient.getQueryCache();
2061
2063
  var entityChangeUnsubscribers = React.useRef({});