mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-09 06:55:03 +00:00
fix: example tab not closing post delete, tab not found issue when i delete intermediate example (#6561)
This commit is contained in:
@@ -4,11 +4,14 @@ import Portal from 'components/Portal';
|
||||
import { useDispatch } from 'react-redux';
|
||||
import { deleteResponseExample } from 'providers/ReduxStore/slices/collections';
|
||||
import { saveRequest } from 'providers/ReduxStore/slices/collections/actions';
|
||||
import { closeTabs } from 'providers/ReduxStore/slices/tabs';
|
||||
|
||||
const DeleteResponseExampleModal = ({ onClose, example, item, collection }) => {
|
||||
const dispatch = useDispatch();
|
||||
|
||||
const onConfirm = () => {
|
||||
const onConfirm = (e) => {
|
||||
e.stopPropagation();
|
||||
dispatch(closeTabs({ tabUids: [example.uid] }));
|
||||
dispatch(deleteResponseExample({
|
||||
itemUid: item.uid,
|
||||
collectionUid: collection.uid,
|
||||
|
||||
Reference in New Issue
Block a user