Skip to content

Commit 1868bf7

Browse files
committed
fix: multi-select tree node actions (#7182)
1 parent 3e7d907 commit 1868bf7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ Changes can also be flagged with a GitHub label for tracking purposes. The URL o
5959
- Fixed incorrect date format string [#7143](https://github.com/ethyca/fides/pull/7143)
6060
- Fixed dsr error toast staying while navigating [#7149](https://github.com/ethyca/fides/pull/7149)
6161
- Fixed repeatedly clicking "Delete" on custom fields causing multiple errors [#7115](https://github.com/ethyca/fides/pull/7115)
62+
- Fixed multi-select tree action counts [7182](https://github.com/ethyca/fides/pull/7182)
6263

6364

6465
## [2.76.1](https://github.com/ethyca/fides/compare/2.76.0..2.76.1)

clients/admin-ui/src/features/data-discovery-and-detection/action-center/fields/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ import {
5555
} from "./MonitorFields.const";
5656
import MonitorTree, { MonitorTreeRef } from "./MonitorTree";
5757
import { ResourceDetailsDrawer } from "./ResourceDetailsDrawer";
58-
import { collectNodeUrns } from "./treeUtils";
5958
import type { MonitorResource } from "./types";
6059
import { useBulkActions } from "./useBulkActions";
6160
import { useBulkListSelect } from "./useBulkListSelect";
@@ -123,9 +122,11 @@ const ActionCenterFields: NextPage = () => {
123122
const bulkActions = useBulkActions(monitorId, async (urns: string[]) => {
124123
await monitorTreeRef.current?.refreshResourcesAndAncestors(urns);
125124
});
125+
126126
const fieldActions = useFieldActions(monitorId, async (urns: string[]) => {
127127
await monitorTreeRef.current?.refreshResourcesAndAncestors(urns);
128128
});
129+
129130
const {
130131
listQuery: { nodes: listNodes, ...listQueryMeta },
131132
detailsQuery: { data: resource },
@@ -286,9 +287,8 @@ const ActionCenterFields: NextPage = () => {
286287
return true;
287288
})
288289
.some((d) => d === true),
289-
callback: (keys, nodes) => {
290-
const allUrns = collectNodeUrns(nodes);
291-
fieldActions[action](allUrns, false);
290+
callback: (keys) => {
291+
fieldActions[action](keys, false);
292292
},
293293
},
294294
]),

0 commit comments

Comments
 (0)