Change unselectAll syntax

https: //marmelab.com/react-admin/Upgrade.html#useunselectall-syntax-changed

Change-Id: Ie8d261e863fe4726b3a5925ed0446eb824c6e517
This commit is contained in:
dklimpel 2024-02-05 22:03:34 +01:00 committed by Manuel Stahl
parent 005abfb4a2
commit 82578c6570
2 changed files with 4 additions and 4 deletions

View file

@ -65,7 +65,7 @@ export const RoomDirectoryBulkSaveButton = () => {
const { selectedIds } = useListContext();
const notify = useNotify();
const refresh = useRefresh();
const unselectAll = useUnselectAll();
const unselectAllRooms = useUnselectAll("rooms");
const { createMany, isloading } = useMutation();
const handleSend = values => {
@ -74,7 +74,7 @@ export const RoomDirectoryBulkSaveButton = () => {
{
onSuccess: data => {
notify("resources.room_directory.action.send_success");
unselectAll("rooms");
unselectAllRooms();
refresh();
},
onError: error =>

View file

@ -115,7 +115,7 @@ export const ServerNoticeBulkButton = () => {
const { selectedIds } = useListContext();
const [open, setOpen] = useState(false);
const notify = useNotify();
const unselectAll = useUnselectAll();
const unselectAllUsers = useUnselectAll("users");
const { createMany, isloading } = useMutation();
const handleDialogOpen = () => setOpen(true);
@ -127,7 +127,7 @@ export const ServerNoticeBulkButton = () => {
{
onSuccess: data => {
notify("resources.servernotices.action.send_success");
unselectAll("users");
unselectAllUsers();
handleDialogClose();
},
onError: error =>