@reltio/components 1.4.1030 → 1.4.1031

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.
@@ -42,15 +42,16 @@ var ActivityExportButton = function (_a) {
42
42
  var dispatch = react_redux_1.useDispatch();
43
43
  var _c = react_1.useState(false), showSnackbar = _c[0], setShowSnackbar = _c[1];
44
44
  var exportPath = react_redux_1.useSelector(mdm_module_1.default.selectors.getExportPath);
45
+ var tenant = react_redux_1.useSelector(mdm_module_1.default.selectors.getTenant);
45
46
  var handleClickExport = react_1.useCallback(function (type) {
46
47
  var options = {
47
48
  filter: filters_1.buildActivitiesFilterString(filters),
48
49
  fileFormat: type
49
50
  };
50
- mdm_sdk_1.exportActivities({ exportPath: exportPath, options: options })
51
+ mdm_sdk_1.exportActivities({ exportPath: exportPath, tenant: tenant, options: options })
51
52
  .then(function () { return setShowSnackbar(true); })
52
53
  .catch(onError);
53
- }, [filters, exportPath]);
54
+ }, [filters, tenant, exportPath]);
54
55
  var onError = function (error) {
55
56
  console.error(error);
56
57
  ErrorPopup_1.default.addError({
@@ -18,15 +18,16 @@ var ActivityExportButton = function (_a) {
18
18
  var dispatch = useDispatch();
19
19
  var _c = useState(false), showSnackbar = _c[0], setShowSnackbar = _c[1];
20
20
  var exportPath = useSelector(mdmModule.selectors.getExportPath);
21
+ var tenant = useSelector(mdmModule.selectors.getTenant);
21
22
  var handleClickExport = useCallback(function (type) {
22
23
  var options = {
23
24
  filter: buildActivitiesFilterString(filters),
24
25
  fileFormat: type
25
26
  };
26
- exportActivities({ exportPath: exportPath, options: options })
27
+ exportActivities({ exportPath: exportPath, tenant: tenant, options: options })
27
28
  .then(function () { return setShowSnackbar(true); })
28
29
  .catch(onError);
29
- }, [filters, exportPath]);
30
+ }, [filters, tenant, exportPath]);
30
31
  var onError = function (error) {
31
32
  console.error(error);
32
33
  ErrorPopup.addError({
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@reltio/components",
3
- "version": "1.4.1030",
3
+ "version": "1.4.1031",
4
4
  "license": "SEE LICENSE IN LICENSE FILE",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
7
7
  "dependencies": {
8
8
  "@date-io/moment": "^1.3.5",
9
9
  "@react-google-maps/api": "^2.7.0",
10
- "@reltio/mdm-module": "^1.4.1030",
11
- "@reltio/mdm-sdk": "^1.4.1030",
10
+ "@reltio/mdm-module": "^1.4.1031",
11
+ "@reltio/mdm-sdk": "^1.4.1031",
12
12
  "classnames": "^2.2.5",
13
13
  "d3-cloud": "^1.2.5",
14
14
  "d3-geo": "^2.0.1",