Skip to content

Commit

Permalink
[ML] Fix deleting DFA not showing index pattern check (#72904) (#72938)
Browse files Browse the repository at this point in the history
  • Loading branch information
qn895 authored Jul 23, 2020
1 parent 2c356fc commit 5d8eb61
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ export const useDeleteAction = () => {
);
if (ip !== undefined) {
setIndexPatternExists(true);
} else {
setIndexPatternExists(false);
}
} catch (e) {
const { toasts } = notifications;
Expand Down Expand Up @@ -101,7 +103,7 @@ export const useDeleteAction = () => {

// Check if an user has permission to delete the index & index pattern
checkUserIndexPermission();
}, []);
}, [isModalVisible]);

const closeModal = () => setModalVisible(false);
const deleteAndCloseModal = () => {
Expand Down

0 comments on commit 5d8eb61

Please sign in to comment.