@cccsaurora/howler-ui 3.1.0-dev.1655 → 3.1.0-dev.1656

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.
@@ -14,7 +14,7 @@ import useMyApi from '@cccsaurora/howler-ui/components/hooks/useMyApi';
14
14
  import useMyActionFunctions from '@cccsaurora/howler-ui/components/routes/action/useMyActionFunctions';
15
15
  import AddRecordToCaseModal from '@cccsaurora/howler-ui/components/routes/cases/modals/AddRecordToCaseModal';
16
16
  import CreateCaseModal from '@cccsaurora/howler-ui/components/routes/cases/modals/CreateCaseModal';
17
- import { capitalize, get, groupBy, isEmpty, toString } from 'lodash-es';
17
+ import { capitalize, get, groupBy, isEmpty, toString, uniq } from 'lodash-es';
18
18
  import howlerPluginStore from '@cccsaurora/howler-ui/plugins/store';
19
19
  import React, { useCallback, useContext, useEffect, useMemo, useState } from 'react';
20
20
  import { useTranslation } from 'react-i18next';
@@ -188,10 +188,10 @@ const RecordContextMenu = ({ children, getSelectedId, Component }) => {
188
188
  onClick: () => executeAction(action.action_id, `howler.id:(${records.map(r => r.howler.id).join(' OR ')})`)
189
189
  }))
190
190
  });
191
- const filterKeys = Array.from(new Set([
191
+ const filterKeys = uniq([
192
192
  ...(template?.keys ?? []),
193
193
  ...Object.keys(record.howler.outline ?? {}).map(key => `howler.outline.${key}`)
194
- ]));
194
+ ]);
195
195
  if (!isEmpty(filterKeys) && setQuery) {
196
196
  result.push({ kind: 'divider', id: 'filter-divider' });
197
197
  result.push({
package/package.json CHANGED
@@ -97,7 +97,7 @@
97
97
  "url": "https://github.com/CybercentreCanada/howler"
98
98
  },
99
99
  "type": "module",
100
- "version": "3.1.0-dev.1655",
100
+ "version": "3.1.0-dev.1656",
101
101
  "exports": {
102
102
  "./i18n": "./i18n.js",
103
103
  "./index.css": "./index.css",