Skip to content

Commit

Permalink
frontend: fix location import on mutli delete button
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Jansen <[email protected]>
  • Loading branch information
farodin91 committed Dec 16, 2024
1 parent d94fde1 commit 16cba5d
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 16cba5d

Please sign in to comment.