@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 =
|
|
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({
|