@truedat/ie 4.46.9 → 4.46.13

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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.46.10] 2022-06-20
4
+
5
+ ### Fixed
6
+
7
+ - [TD-4938] Avoid creating empty objects in `mapStateToProps`
8
+
3
9
  ## [4.46.2] 2022-06-16
4
10
 
5
11
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/ie",
3
- "version": "4.46.9",
3
+ "version": "4.46.13",
4
4
  "description": "Truedat Web Ingests",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -34,7 +34,7 @@
34
34
  "@testing-library/jest-dom": "^5.16.4",
35
35
  "@testing-library/react": "^12.0.0",
36
36
  "@testing-library/user-event": "^13.2.1",
37
- "@truedat/test": "4.46.9",
37
+ "@truedat/test": "4.46.12",
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",
@@ -87,8 +87,8 @@
87
87
  ]
88
88
  },
89
89
  "dependencies": {
90
- "@truedat/core": "4.46.9",
91
- "@truedat/df": "4.46.9",
90
+ "@truedat/core": "4.46.13",
91
+ "@truedat/df": "4.46.13",
92
92
  "file-saver": "^2.0.5",
93
93
  "moment": "^2.24.0",
94
94
  "path-to-regexp": "^1.7.0",
@@ -107,5 +107,5 @@
107
107
  "react-dom": ">= 16.8.6 < 17",
108
108
  "semantic-ui-react": ">= 0.88.2 < 2.1"
109
109
  },
110
- "gitHead": "e4b69516afe19d864531f507af8c7d0f17b2a064"
110
+ "gitHead": "89cd539e47e64a3e4a6f8bc30ea4d3b66fb0b666"
111
111
  }
@@ -18,13 +18,15 @@ export const IngestHeader = ({ ingest, domain, template }) => (
18
18
  IngestHeader.propTypes = {
19
19
  ingest: PropTypes.object,
20
20
  domain: PropTypes.object,
21
- template: PropTypes.object
21
+ template: PropTypes.object,
22
22
  };
23
23
 
24
+ const EMPTY = {};
25
+
24
26
  const mapStateToProps = ({ ingest }) => ({
25
27
  ingest,
26
- domain: ingest.domain || {},
27
- template: ingest.template || {}
28
+ domain: ingest.domain || EMPTY,
29
+ template: ingest.template || EMPTY,
28
30
  });
29
31
 
30
32
  export default connect(mapStateToProps)(IngestHeader);
@@ -58,9 +58,7 @@ export class IngestLoader extends React.Component {
58
58
  }
59
59
  }
60
60
 
61
- const mapStateToProps = ({ ingestLoading }) => ({
62
- ingestLoading,
63
- });
61
+ const mapStateToProps = ({ ingestLoading }) => ({ ingestLoading });
64
62
 
65
63
  export default compose(
66
64
  withRouter,
@@ -290,7 +290,7 @@ IngestRoutes.propTypes = {
290
290
 
291
291
  const mapStateToProps = ({ ingest, templatesLoading, templates }) => ({
292
292
  ingestLoaded: !_.isEmpty(ingest),
293
- ingest_id: !_.isEmpty(ingest) ? ingest.ingest_id : undefined,
293
+ ingest_id: ingest?.ingest_id,
294
294
  templatesLoaded: !templatesLoading && !_.isEmpty(templates),
295
295
  });
296
296