Fixed authentication caching

This commit is contained in:
frikky
2021-05-28 13:07:38 +02:00
parent d920158cd6
commit fd4a87bfe6
8 changed files with 54 additions and 18 deletions
+4 -1
View File
@@ -151,7 +151,10 @@ const Admin = (props) => {
if (responseJson["success"] === false) {
alert.error("Failed deleting auth")
} else {
getAppAuthentication()
// Need to wait because query in ES is too fast
setTimeout(() => {
getAppAuthentication()
}, 1000);
alert.success("Successfully deleted authentication!")
}
}),