File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
web-app/src/screens/Console/Groups Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import { useAppDispatch } from "../../../store";
2222import ConfirmDialog from "../Common/ModalWrapper/ConfirmDialog" ;
2323import { api } from "api" ;
2424import { errorToHandler } from "api/errors" ;
25- import { HttpResponse } from "api/consoleApi" ;
25+ import { ApiError , HttpResponse } from "api/consoleApi" ;
2626
2727interface IDeleteGroup {
2828 selectedGroups : string [ ] ;
@@ -50,8 +50,8 @@ const DeleteGroup = ({
5050 . then ( ( _ ) => {
5151 closeDeleteModalAndRefresh ( true ) ;
5252 } )
53- . catch ( async ( res : HttpResponse < void , Error > ) => {
54- const err = ( await res . json ( ) ) as Error ;
53+ . catch ( async ( res : HttpResponse < void , ApiError > ) => {
54+ const err = ( await res . json ( ) ) as ApiError ;
5555 dispatch ( setErrorSnackMessage ( errorToHandler ( err ) ) ) ;
5656 closeDeleteModalAndRefresh ( false ) ;
5757 } )
You can’t perform that action at this time.
0 commit comments