To properly show error in AddAccessRule.tsx (#3008)
Fixing the shown errors
This commit is contained in:
committed by
GitHub
parent
657854bd29
commit
f4a9420002
@@ -78,8 +78,8 @@ const AddAccessRule = ({
|
||||
dispatch(setSnackBarMessage("Access Rule added successfully"));
|
||||
onClose();
|
||||
})
|
||||
.catch((err) => {
|
||||
dispatch(setErrorSnackMessage(errorToHandler(err)));
|
||||
.catch((res) => {
|
||||
dispatch(setErrorSnackMessage(errorToHandler(res.error)));
|
||||
onClose();
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user