@backstage/plugin-catalog-react 0.6.6 → 0.6.7
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 +10 -0
- package/dist/index.cjs.js +5 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +4 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-react
|
|
2
2
|
|
|
3
|
+
## 0.6.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6156fb8730: `useEntityTypeFilter`: Skip updating selected types if a kind filter change did not change them.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/core-plugin-api@0.3.1
|
|
10
|
+
- @backstage/core-components@0.8.1
|
|
11
|
+
- @backstage/catalog-model@0.9.8
|
|
12
|
+
|
|
3
13
|
## 0.6.6
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/index.cjs.js
CHANGED
|
@@ -13,6 +13,7 @@ var versionBridge = require('@backstage/version-bridge');
|
|
|
13
13
|
var reactRouter = require('react-router');
|
|
14
14
|
var reactUse = require('react-use');
|
|
15
15
|
var qs = require('qs');
|
|
16
|
+
var isEqual = require('lodash/isEqual');
|
|
16
17
|
var coreComponents = require('@backstage/core-components');
|
|
17
18
|
var core = require('@material-ui/core');
|
|
18
19
|
var jwtDecoder = require('jwt-decode');
|
|
@@ -33,6 +34,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
33
34
|
var ObservableImpl__default = /*#__PURE__*/_interopDefaultLegacy(ObservableImpl);
|
|
34
35
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
35
36
|
var qs__default = /*#__PURE__*/_interopDefaultLegacy(qs);
|
|
37
|
+
var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual);
|
|
36
38
|
var jwtDecoder__default = /*#__PURE__*/_interopDefaultLegacy(jwtDecoder);
|
|
37
39
|
var CheckBoxIcon__default = /*#__PURE__*/_interopDefaultLegacy(CheckBoxIcon);
|
|
38
40
|
var CheckBoxOutlineBlankIcon__default = /*#__PURE__*/_interopDefaultLegacy(CheckBoxOutlineBlankIcon);
|
|
@@ -577,7 +579,9 @@ function useEntityTypeFilter() {
|
|
|
577
579
|
const newTypes = Object.entries(countByType).sort(([, count1], [, count2]) => count2 - count1).map(([type]) => type);
|
|
578
580
|
setAvailableTypes(newTypes);
|
|
579
581
|
const stillValidTypes = selectedTypes.filter((value) => newTypes.includes(value));
|
|
580
|
-
|
|
582
|
+
if (!isEqual__default["default"](selectedTypes, stillValidTypes)) {
|
|
583
|
+
setSelectedTypes(stillValidTypes);
|
|
584
|
+
}
|
|
581
585
|
}, [loading, kind, selectedTypes, setSelectedTypes, entities]);
|
|
582
586
|
React.useEffect(() => {
|
|
583
587
|
updateFilters({
|