mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-12 08:47:40 -05:00
Change CSV handling - fixed group delete
This commit is contained in:
@@ -94,7 +94,7 @@ export const apiSlice = createApi({
|
||||
await queryFulfilled
|
||||
dispatch(
|
||||
apiSlice.util.updateQueryData('getGroups', group.shortName, (groups) => {
|
||||
const groupIndex = groups.findIndex((obj => obj.groupId === group.groupId));
|
||||
const groupIndex = groups.findIndex((obj => obj._id === group._id));
|
||||
groups.splice(groupIndex,1);
|
||||
})
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user