@truedat/core 4.52.0 → 4.52.5

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,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.52.4] 2022-09-30
4
+
5
+ ### Fixed
6
+
7
+ - [TD-5190] Error fetching domains for dynamic `domain` fields in
8
+ implementations, grants and remediation plans
9
+
3
10
  ## [4.51.3] 2022-09-16
4
11
 
5
12
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/core",
3
- "version": "4.52.0",
3
+ "version": "4.52.5",
4
4
  "description": "Truedat Web Core",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -112,5 +112,5 @@
112
112
  "react-dom": ">= 16.8.6 < 17",
113
113
  "semantic-ui-react": ">= 0.88.2 < 2.1"
114
114
  },
115
- "gitHead": "1d43cb9b9b8531eb6c054c7f430741976d59f592"
115
+ "gitHead": "6dd96a3f576251beb2a3a9d6259b1bf187635f1b"
116
116
  }
@@ -20,7 +20,7 @@ export const DomainSelector = ({
20
20
  const { loading, error, data } = useQuery(DOMAINS_QUERY, {
21
21
  fetchPolicy: "cache-and-network",
22
22
  variables: {
23
- action,
23
+ action: action || "viewDomain",
24
24
  domainActions,
25
25
  },
26
26
  onCompleted: onLoad,
@@ -18,6 +18,7 @@ const domainsMock = {
18
18
  name: "foo",
19
19
  externalId: "A",
20
20
  parentId: null,
21
+ actions: [],
21
22
  },
22
23
  {
23
24
  __typename: "Domain",
@@ -25,6 +26,7 @@ const domainsMock = {
25
26
  name: "bar",
26
27
  externalId: "B",
27
28
  parentId: "1",
29
+ actions: [],
28
30
  },
29
31
  {
30
32
  __typename: "Domain",
@@ -32,6 +34,7 @@ const domainsMock = {
32
34
  name: "baz",
33
35
  externalId: "C",
34
36
  parentId: "2",
37
+ actions: [],
35
38
  },
36
39
  {
37
40
  __typename: "Domain",
@@ -39,18 +42,14 @@ const domainsMock = {
39
42
  name: "xyzzy",
40
43
  externalId: "D",
41
44
  parentId: "99",
45
+ actions: [],
42
46
  },
43
47
  ],
44
48
  },
45
49
  },
46
50
  };
47
- const messages = {
48
- en: {
49
- "domain.multiple.placeholder": "Select domains",
50
- },
51
- };
52
51
 
53
- const renderOpts = { mocks: [domainsMock], messages };
52
+ const renderOpts = { mocks: [domainsMock] };
54
53
 
55
54
  describe("<DomainSelector />", () => {
56
55
  it("matches latest snapshot", () => {