@performant-software/semantic-components 0.5.13 → 0.5.14

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": "@performant-software/semantic-components",
3
- "version": "0.5.13",
3
+ "version": "0.5.14",
4
4
  "description": "A package of shared components based on the Semantic UI Framework.",
5
5
  "license": "MIT",
6
6
  "main": "./build/index.js",
@@ -12,7 +12,7 @@
12
12
  "build": "webpack --mode production && flow-copy-source -v src types"
13
13
  },
14
14
  "dependencies": {
15
- "@performant-software/shared-components": "^0.5.13",
15
+ "@performant-software/shared-components": "^0.5.14",
16
16
  "@react-google-maps/api": "^2.8.1",
17
17
  "axios": "^0.26.1",
18
18
  "i18next": "^19.4.4",
@@ -33,7 +33,7 @@
33
33
  "react-dom": ">= 16.13.1 < 18.0.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@performant-software/webpack-config": "^0.5.13",
36
+ "@performant-software/webpack-config": "^0.5.14",
37
37
  "flow-copy-source": "^2.0.9",
38
38
  "less": "^4.1.2",
39
39
  "less-loader": "^11.0.0",
@@ -50,12 +50,15 @@ const ReferenceCodeFormDropdown: ComponentType<any> = (props: Props) => {
50
50
  { modal && (
51
51
  <EditModal
52
52
  component={ReferenceTableModal}
53
- item={{ id: referenceTable }}
53
+ item={{ id: referenceTable, key: referenceTable }}
54
54
  onClose={() => setModal(false)}
55
55
  onInitialize={(key) => (
56
56
  ReferenceTablesService
57
57
  .fetchByKey(key)
58
- .then(({ data }) => data.reference_table)
58
+ .then(({ data }) => ({
59
+ ...data.reference_table,
60
+ key
61
+ }))
59
62
  )}
60
63
  onSave={(record) => (
61
64
  ReferenceTablesService
@@ -50,12 +50,15 @@ const ReferenceCodeFormDropdown: ComponentType<any> = (props: Props) => {
50
50
  { modal && (
51
51
  <EditModal
52
52
  component={ReferenceTableModal}
53
- item={{ id: referenceTable }}
53
+ item={{ id: referenceTable, key: referenceTable }}
54
54
  onClose={() => setModal(false)}
55
55
  onInitialize={(key) => (
56
56
  ReferenceTablesService
57
57
  .fetchByKey(key)
58
- .then(({ data }) => data.reference_table)
58
+ .then(({ data }) => ({
59
+ ...data.reference_table,
60
+ key
61
+ }))
59
62
  )}
60
63
  onSave={(record) => (
61
64
  ReferenceTablesService