@truedat/bg 6.2.0 → 6.2.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.2.0",
3
+ "version": "6.2.1",
4
4
  "description": "Truedat Web Business Glossary",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -34,7 +34,7 @@
34
34
  "@testing-library/jest-dom": "^5.16.5",
35
35
  "@testing-library/react": "^12.0.0",
36
36
  "@testing-library/user-event": "^13.2.1",
37
- "@truedat/test": "6.2.0",
37
+ "@truedat/test": "6.2.1",
38
38
  "babel-jest": "^28.1.0",
39
39
  "babel-plugin-dynamic-import-node": "^2.3.3",
40
40
  "babel-plugin-lodash": "^3.3.4",
@@ -86,9 +86,9 @@
86
86
  ]
87
87
  },
88
88
  "dependencies": {
89
- "@truedat/core": "6.2.0",
90
- "@truedat/df": "6.2.0",
91
- "@truedat/lm": "6.2.0",
89
+ "@truedat/core": "6.2.1",
90
+ "@truedat/df": "6.2.1",
91
+ "@truedat/lm": "6.2.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": "5c10ee429997ab081477edf0679547eb4bc11f9b"
114
+ "gitHead": "fe5372fdac1114b9f2ec5a392dbdd603e98c3d83"
115
115
  }
@@ -138,7 +138,7 @@ export const ConceptCompleteness = ({ concept }) => {
138
138
  key={lang}
139
139
  status={status}
140
140
  completeness={completeness}
141
- langLocalName={langLocalName}
141
+ langLocalName={_.size(i18nConcept) > 1 ? langLocalName : null}
142
142
  concept={concept}
143
143
  content={content}
144
144
  />
@@ -32,7 +32,7 @@ export const ConceptDetails = ({ concept }) => {
32
32
  const i18nContent = concept.i18n_content || {};
33
33
 
34
34
  const i18nConcept = _.flow(
35
- _.filter(({ is_enabled, is_required }) => is_enabled && is_required),
35
+ _.filter(({ is_enabled }) => is_enabled),
36
36
  _.map(({ id, lang, is_default, is_required, local_name }) => {
37
37
  const contentLang = _.get(lang)(i18nContent);
38
38
  const langContent = is_default
@@ -58,12 +58,9 @@ export const ConceptDetails = ({ concept }) => {
58
58
 
59
59
  return (
60
60
  <Segment attached="bottom">
61
- {_.size(i18nConcept > 1) ? (
61
+ {_.size(i18nConcept) > 1 ? (
62
62
  <ButtonGroup floated="right">
63
63
  {_.flow(
64
- _.filter(
65
- ({ lang, is_default }) => i18nConcept[lang]?.content || is_default
66
- ),
67
64
  _.map(({ lang, content }) => {
68
65
  return !_.isEmpty(content) ? (
69
66
  <Button