Skip to content

Commit d325b5b

Browse files
authored
Merge pull request #2694 from farodin91/frontend-fix-location-import-on-mutli-delete-button
frontend: fix location import on mutli delete button
2 parents b62a424 + 16cba5d commit d325b5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

frontend/src/components/common/Resource/DeleteMultipleButton.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import _ from 'lodash';
22
import React from 'react';
33
import { useTranslation } from 'react-i18next';
44
import { useDispatch } from 'react-redux';
5+
import { useLocation } from 'react-router-dom';
56
import { KubeObject } from '../../../lib/k8s/KubeObject';
67
import { CallbackActionOptions, clusterAction } from '../../../redux/clusterActionSlice';
78
import {
@@ -43,6 +44,7 @@ export default function DeleteMultipleButton(props: DeleteMultipleButtonProps) {
4344
const { items, options, afterConfirm, buttonStyle } = props;
4445
const [openAlert, setOpenAlert] = React.useState(false);
4546
const { t } = useTranslation(['translation']);
47+
const location = useLocation();
4648
const dispatchDeleteEvent = useEventCallback(HeadlampEventType.DELETE_RESOURCES);
4749

4850
const deleteFunc = React.useCallback(

0 commit comments

Comments
 (0)