Skip to content

Commit

Permalink
Merge pull request #2694 from farodin91/frontend-fix-location-import-…
Browse files Browse the repository at this point in the history
…on-mutli-delete-button

frontend: fix location import on mutli delete button
  • Loading branch information
sniok authored Dec 20, 2024
2 parents b62a424 + 16cba5d commit d325b5b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import _ from 'lodash';
import React from 'react';
import { useTranslation } from 'react-i18next';
import { useDispatch } from 'react-redux';
import { useLocation } from 'react-router-dom';
import { KubeObject } from '../../../lib/k8s/KubeObject';
import { CallbackActionOptions, clusterAction } from '../../../redux/clusterActionSlice';
import {
Expand Down Expand Up @@ -43,6 +44,7 @@ export default function DeleteMultipleButton(props: DeleteMultipleButtonProps) {
const { items, options, afterConfirm, buttonStyle } = props;
const [openAlert, setOpenAlert] = React.useState(false);
const { t } = useTranslation(['translation']);
const location = useLocation();
const dispatchDeleteEvent = useEventCallback(HeadlampEventType.DELETE_RESOURCES);

const deleteFunc = React.useCallback(
Expand Down

0 comments on commit d325b5b

Please sign in to comment.