Skip to content

Commit

Permalink
fix: update editor on multiple resource delete
Browse files Browse the repository at this point in the history
  • Loading branch information
Julia M committed Jul 11, 2022
1 parent e4d9f95 commit 971da97
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {K8sResource} from '@models/k8sresource';

import {useAppDispatch, useAppSelector} from '@redux/hooks';
import {setAlert} from '@redux/reducers/alert';
import {uncheckAllResourceIds} from '@redux/reducers/main';
import {editorHasReloadedSelectedPath, uncheckAllResourceIds} from '@redux/reducers/main';
import {openSaveResourcesToFileFolderModal} from '@redux/reducers/ui';
import {
isInClusterModeSelector,
Expand Down Expand Up @@ -139,7 +139,7 @@ const deleteCheckedResourcesWithConfirm = (checkedResources: K8sResource[], disp
alertMessage += `${alertMessage && ' | '}${resource.name}\n`;
});
dispatch(removeResources(resourceIdsToRemove));

dispatch(editorHasReloadedSelectedPath(true));
dispatch(setAlert({type: AlertEnum.Success, title: 'Successfully deleted resources', message: alertMessage}));
resolve({});
});
Expand Down

0 comments on commit 971da97

Please sign in to comment.