fix: example tab not closing post delete, tab not found issue when i delete intermediate example (#6561)

This commit is contained in:
sanish chirayath
2025-12-30 14:44:57 +05:30
committed by GitHub
parent 5dad137631
commit d7cef7aa4e
3 changed files with 33 additions and 3 deletions

View File

@@ -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,