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

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,42 @@
1
1
  # @backstage/plugin-catalog-react
2
2
 
3
+ ## 1.2.4-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/catalog-client@1.3.0-next.1
9
+ - @backstage/catalog-model@1.1.5-next.1
10
+ - @backstage/core-components@0.12.3-next.1
11
+ - @backstage/core-plugin-api@1.2.1-next.0
12
+ - @backstage/errors@1.1.4
13
+ - @backstage/integration@1.4.2-next.0
14
+ - @backstage/theme@0.2.16
15
+ - @backstage/types@1.0.2
16
+ - @backstage/version-bridge@1.0.3
17
+ - @backstage/plugin-catalog-common@1.0.10-next.1
18
+ - @backstage/plugin-permission-common@0.7.3-next.0
19
+ - @backstage/plugin-permission-react@0.4.9-next.0
20
+
21
+ ## 1.2.4-next.0
22
+
23
+ ### Patch Changes
24
+
25
+ - 37426f6f5e: Fixed bug in `EntityTagPicker` that filtered on unavailable tags for the selected kind.
26
+ - Updated dependencies
27
+ - @backstage/catalog-model@1.1.5-next.0
28
+ - @backstage/catalog-client@1.3.0-next.0
29
+ - @backstage/core-components@0.12.3-next.0
30
+ - @backstage/core-plugin-api@1.2.0
31
+ - @backstage/errors@1.1.4
32
+ - @backstage/integration@1.4.1
33
+ - @backstage/theme@0.2.16
34
+ - @backstage/types@1.0.2
35
+ - @backstage/version-bridge@1.0.3
36
+ - @backstage/plugin-catalog-common@1.0.10-next.0
37
+ - @backstage/plugin-permission-common@0.7.2
38
+ - @backstage/plugin-permission-react@0.4.8
39
+
3
40
  ## 1.2.3
4
41
 
5
42
  ### Patch Changes
@@ -11,6 +48,7 @@
11
48
 
12
49
  ### Patch Changes
13
50
 
51
+ - 2cb9998: Fixed bug in `EntityOwnerPicker` and `EntityLifecyclePicker` that filtered on unavailable tags for the selected kind.
14
52
  - 2e701b3796: Internal refactor to use `react-router-dom` rather than `react-router`.
15
53
  - 6ffa47bb0a: Cleanup and small fixes for the kind selector
16
54
  - 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.1",
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(