parent
a73b2d3a4b
commit
acf77df64c
1 changed files with 4 additions and 1 deletions
|
@ -160,6 +160,7 @@ export function KeycloakDataTable<T>({
|
|||
},
|
||||
(result) => {
|
||||
setRows(result);
|
||||
setFilteredData(result);
|
||||
setLoading(false);
|
||||
}
|
||||
);
|
||||
|
@ -195,7 +196,9 @@ export function KeycloakDataTable<T>({
|
|||
_.cloneDeep(actions).map((action: Action<T>, index: number) => {
|
||||
delete action.onRowClick;
|
||||
action.onClick = async (_, rowIndex) => {
|
||||
const result = await actions[index].onRowClick!(rows![rowIndex].data);
|
||||
const result = await actions[index].onRowClick!(
|
||||
(filteredData || rows)![rowIndex].data
|
||||
);
|
||||
if (result) {
|
||||
refresh();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue