fix(ui): avoid state changes on unmouted component

pull/5930/head
Pavel Zavora 2022-06-08 11:13:10 +02:00
parent 78264d1e51
commit ef857ae7be
1 changed files with 1 additions and 1 deletions

View File

@ -95,10 +95,10 @@ const UserPage = ({
setRunning(true)
try {
await deleteUserDispatchAsync(u)
router.push(`/sources/${sourceID}/admin-influxdb/users`)
} finally {
setRunning(false)
}
router.push(`/sources/${sourceID}/admin-influxdb/users`)
},
]
}, [source, users, userName])