@backstage/plugin-catalog-react 0.0.0-nightly-20221222022401 → 0.0.0-nightly-20221224021908

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
@@ -1,14 +1,23 @@
1
1
  # @backstage/plugin-catalog-react
2
2
 
3
- ## 0.0.0-nightly-20221222022401
3
+ ## 0.0.0-nightly-20221224021908
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - 37426f6f5e: Fixed bug in `EntityTagPicker` that filtered on unavailable tags for the selected kind.
7
8
  - Updated dependencies
8
- - @backstage/catalog-model@0.0.0-nightly-20221222022401
9
- - @backstage/catalog-client@0.0.0-nightly-20221222022401
10
- - @backstage/core-components@0.0.0-nightly-20221222022401
11
- - @backstage/plugin-catalog-common@0.0.0-nightly-20221222022401
9
+ - @backstage/catalog-model@0.0.0-nightly-20221224021908
10
+ - @backstage/catalog-client@0.0.0-nightly-20221224021908
11
+ - @backstage/core-components@0.0.0-nightly-20221224021908
12
+ - @backstage/core-plugin-api@1.2.0
13
+ - @backstage/errors@1.1.4
14
+ - @backstage/integration@1.4.1
15
+ - @backstage/theme@0.2.16
16
+ - @backstage/types@1.0.2
17
+ - @backstage/version-bridge@1.0.3
18
+ - @backstage/plugin-catalog-common@0.0.0-nightly-20221224021908
19
+ - @backstage/plugin-permission-common@0.7.2
20
+ - @backstage/plugin-permission-react@0.4.8
12
21
 
13
22
  ## 1.2.3
14
23
 
@@ -21,6 +30,7 @@
21
30
 
22
31
  ### Patch Changes
23
32
 
33
+ - 2cb9998: Fixed bug in `EntityOwnerPicker` and `EntityLifecyclePicker` that filtered on unavailable tags for the selected kind.
24
34
  - 2e701b3796: Internal refactor to use `react-router-dom` rather than `react-router`.
25
35
  - 6ffa47bb0a: Cleanup and small fixes for the kind selector
26
36
  - 19356df560: Updated dependency `zen-observable` to `^0.9.0`.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-react",
3
- "version": "0.0.0-nightly-20221222022401",
3
+ "version": "0.0.0-nightly-20221224021908",
4
4
  "main": "../dist/index.esm.js",
5
5
  "types": "../dist/index.alpha.d.ts"
6
6
  }
package/dist/index.esm.js CHANGED
@@ -1394,10 +1394,11 @@ const EntityTagPicker = (props) => {
1394
1394
  }
1395
1395
  }, [queryParamTags]);
1396
1396
  useEffect(() => {
1397
+ const tags = Object.keys(availableTags != null ? availableTags : {});
1397
1398
  updateFilters({
1398
- tags: selectedTags.length ? new EntityTagFilter(selectedTags) : void 0
1399
+ tags: selectedTags.length && tags.length ? new EntityTagFilter(selectedTags) : void 0
1399
1400
  });
1400
- }, [selectedTags, updateFilters]);
1401
+ }, [selectedTags, updateFilters, availableTags]);
1401
1402
  if (!Object.keys(availableTags != null ? availableTags : {}).length)
1402
1403
  return null;
1403
1404
  return /* @__PURE__ */ React.createElement(Box, { pb: 1, pt: 1 }, /* @__PURE__ */ React.createElement(Typography, { variant: "button", component: "label" }, "Tags", /* @__PURE__ */ React.createElement(