@backstage/plugin-catalog-react 1.2.3 → 1.2.4-next.0

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,5 +1,24 @@
1
1
  # @backstage/plugin-catalog-react
2
2
 
3
+ ## 1.2.4-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 37426f6f5e: Fixed bug in `EntityTagPicker` that filtered on unavailable tags for the selected kind.
8
+ - Updated dependencies
9
+ - @backstage/catalog-model@1.1.5-next.0
10
+ - @backstage/catalog-client@1.3.0-next.0
11
+ - @backstage/core-components@0.12.3-next.0
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@1.0.10-next.0
19
+ - @backstage/plugin-permission-common@0.7.2
20
+ - @backstage/plugin-permission-react@0.4.8
21
+
3
22
  ## 1.2.3
4
23
 
5
24
  ### Patch Changes
@@ -11,6 +30,7 @@
11
30
 
12
31
  ### Patch Changes
13
32
 
33
+ - 2cb9998: Fixed bug in `EntityOwnerPicker` and `EntityLifecyclePicker` that filtered on unavailable tags for the selected kind.
14
34
  - 2e701b3796: Internal refactor to use `react-router-dom` rather than `react-router`.
15
35
  - 6ffa47bb0a: Cleanup and small fixes for the kind selector
16
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": "1.2.3",
3
+ "version": "1.2.4-next.0",
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(