Skip to content

Commit 4ba1ac1

Browse files
Resolved data updation issue page after action deletion
1 parent 9f1ad1a commit 4ba1ac1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/st2-actions/actions-panel.component.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ import './style.css';
5555
return { collapsed, ...props };
5656
}, (dispatch, props) => {
5757
const { uid } = props;
58-
5958
return {
6059
onToggle: () => store.dispatch(flexActions.toggle(uid)),
6160
};
@@ -219,6 +218,8 @@ export default class ActionsPanel extends React.Component {
219218
})
220219
.then((res) => {
221220
notification.success(`Action "${ref}" has been deleted successfully.`);
221+
this.navigate({ id: null });
222+
store.dispatch(flexActions.toggleAll());
222223
return res;
223224
})
224225
.catch((err) => {

0 commit comments

Comments
 (0)