@abgov/jsonforms-components 2.13.0 → 2.13.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.
Files changed (2) hide show
  1. package/index.esm.js +2 -5
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -10291,7 +10291,6 @@ class ListWithDetailControl extends React.Component {
10291
10291
  }
10292
10292
 
10293
10293
  const ListWithDetailsControl = props => {
10294
- var _a, _b;
10295
10294
  const [open, setOpen] = useState(false);
10296
10295
  const [path, setPath] = useState();
10297
10296
  const [name, setName] = useState();
@@ -10324,9 +10323,7 @@ const ListWithDetailsControl = props => {
10324
10323
  setOpen(false);
10325
10324
  // eslint-disable-next-line
10326
10325
  }, [setOpen, path, rowData, rowData]);
10327
- if (((_a = props.translations) === null || _a === void 0 ? void 0 : _a.deleteDialogTitle) === undefined || props.translations.deleteDialogTitle === null) {
10328
- props.translations.deleteDialogTitle = '';
10329
- }
10326
+ const deleteTitle = props.translations !== null && props.translations.deleteDialogTitle !== undefined ? props.translations.deleteDialogTitle : '';
10330
10327
  return jsxs(Visible, {
10331
10328
  visible: visible,
10332
10329
  children: [jsx(ListWithDetailControl, Object.assign({}, props, {
@@ -10338,7 +10335,7 @@ const ListWithDetailsControl = props => {
10338
10335
  open: open,
10339
10336
  onCancel: deleteCancel,
10340
10337
  onConfirm: deleteConfirm,
10341
- title: (_b = props.translations.deleteDialogTitle) !== null && _b !== void 0 ? _b : '',
10338
+ title: deleteTitle,
10342
10339
  message: `Are you sure you wish to delete ${name}`
10343
10340
  })]
10344
10341
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "2.13.0",
3
+ "version": "2.13.1",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Government of Alberta - React renderers for JSON Forms based on the design system.",
6
6
  "repository": "https://github.com/GovAlta/adsp-monorepo",