@truedat/bg 6.10.3 → 6.11.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/bg",
3
- "version": "6.10.3",
3
+ "version": "6.11.1",
4
4
  "description": "Truedat Web Business Glossary",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -86,9 +86,9 @@
86
86
  ]
87
87
  },
88
88
  "dependencies": {
89
- "@truedat/core": "6.10.3",
90
- "@truedat/df": "6.10.3",
91
- "@truedat/lm": "6.10.3",
89
+ "@truedat/core": "6.11.1",
90
+ "@truedat/df": "6.11.1",
91
+ "@truedat/lm": "6.11.1",
92
92
  "decode-uri-component": "^0.2.2",
93
93
  "file-saver": "^2.0.5",
94
94
  "moment": "^2.29.4",
@@ -111,5 +111,5 @@
111
111
  "react-dom": ">= 16.8.6 < 17",
112
112
  "semantic-ui-react": ">= 2.0.3 < 2.2"
113
113
  },
114
- "gitHead": "a1cf73b088952f0488a80001bef16a45f40b3829"
114
+ "gitHead": "a684646f8503335b666ea82b85a6c0aa8fbd2336"
115
115
  }
@@ -14,7 +14,7 @@ const missingRequiredFields = (concept, content) => {
14
14
  _.flatMap(({ fields }) =>
15
15
  _.filter((field) => {
16
16
  const name = field?.name;
17
- const value = _.prop("value")(_.prop(name)(content));
17
+ const value = _.prop(name)(content);
18
18
  return (
19
19
  !_.isNumber(value) &&
20
20
  isRequired(field, content) &&
@@ -28,12 +28,14 @@ describe("<ConceptCompleteness />", () => {
28
28
  { cardinality: "?", name: "field1", label: "label1" },
29
29
  { cardinality: "1", name: "field2", label: "label2" },
30
30
  { cardinality: "1", name: "field3", label: "label3" },
31
+ { cardinality: "1", name: "field4", label: "label4" },
31
32
  ],
32
33
  },
33
34
  ],
34
35
  },
35
36
  content: {
36
37
  field3: { value: "value", origin: "user" },
38
+ field2: "value",
37
39
  },
38
40
  },
39
41
  };
@@ -43,7 +43,7 @@ exports[`<ConceptCompleteness /> matches the latest snapshot 1`] = `
43
43
  aria-hidden="true"
44
44
  class="grey right angle fitted icon"
45
45
  />
46
- label2
46
+ label4
47
47
  </div>
48
48
  </div>
49
49
  </div>