feat(ui): delete a flux task without re-fetch

pull/5868/head
Pavel Zavora 2022-02-17 05:39:31 +01:00
parent 4d334405ff
commit ed7e73d600
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ const Contents = ({
onDelete={(task: FluxTask) => {
deleteFluxTask(kapacitor, task)
.then(() => {
setReloadRequired(reloadRequired + 1)
setAllList(allList.filter(x => x.id === task.id))
dispatch(notify(notifyAlertRuleDeleted(task.name)))
})
.catch(() => {