@reltio/components 1.4.1751 → 1.4.1753

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.
@@ -105,6 +105,9 @@ var useRelationsLoader = function (_a) {
105
105
  if (dataSorted === false && showSnackbarMessage) {
106
106
  showSnackbarMessage(ui_i18n_1.default.text('This profile contains a large number of relationships. We have disabled filtering and sorting to help optimize performance.'));
107
107
  }
108
+ if ((connections || []).some((0, ramda_1.pipe)((0, ramda_1.path)(['relation', 'object']), ramda_1.isNil))) {
109
+ console.error("loadRelations request, object is undefined (RP-125251)',\n connections: ".concat(JSON.stringify(connections), ",\n requestConfig: ").concat(JSON.stringify(configs_1), "\n entity.uri: ").concat(entity.uri, "\n tenant: ").concat(tenant, "\n entity.dataTenant: ").concat(entity.dataTenant));
110
+ }
108
111
  relationsLoaded({ id: config.id, connections: connections, total: total, mode: modeRef.current });
109
112
  })
110
113
  .catch(function (e) {
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
13
- import { cond, pipe, prop, T, evolve, filter as filterFn, when, identity, times, length, ifElse, always } from 'ramda';
13
+ import { cond, path, pipe, prop, T, evolve, filter as filterFn, isNil, when, identity, times, length, ifElse, always } from 'ramda';
14
14
  import i18n from 'ui-i18n';
15
15
  import { ActivityFilter, addGlobalFilterToQuery, getRelationsForDataTenantEntity, getRelationsForEntity, isAvailableEntityTypeUri, isAvailableRelationTypeUri, isDataTenantEntity, isObject, isTempUri, Mode, wrapInArrayIfNeeded } from '@reltio/mdm-sdk';
16
16
  import { useSafePromise } from './useSafePromise';
@@ -99,6 +99,9 @@ export var useRelationsLoader = function (_a) {
99
99
  if (dataSorted === false && showSnackbarMessage) {
100
100
  showSnackbarMessage(i18n.text('This profile contains a large number of relationships. We have disabled filtering and sorting to help optimize performance.'));
101
101
  }
102
+ if ((connections || []).some(pipe(path(['relation', 'object']), isNil))) {
103
+ console.error("loadRelations request, object is undefined (RP-125251)',\n connections: ".concat(JSON.stringify(connections), ",\n requestConfig: ").concat(JSON.stringify(configs_1), "\n entity.uri: ").concat(entity.uri, "\n tenant: ").concat(tenant, "\n entity.dataTenant: ").concat(entity.dataTenant));
104
+ }
102
105
  relationsLoaded({ id: config.id, connections: connections, total: total, mode: modeRef.current });
103
106
  })
104
107
  .catch(function (e) {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@reltio/components",
3
- "version": "1.4.1751",
3
+ "version": "1.4.1753",
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
  "@fluentui/react-context-selector": "^9.1.26",
9
9
  "@react-google-maps/api": "2.7.0",
10
- "@reltio/mdm-sdk": "^1.4.1733",
10
+ "@reltio/mdm-sdk": "^1.4.1734",
11
11
  "classnames": "^2.2.5",
12
12
  "d3-cloud": "^1.2.5",
13
13
  "d3-geo": "^2.0.1",