Merge pull request #1354 from sayanm16/fix/api-key-list-state

Fix/api key list state
This commit is contained in:
Alex
2024-10-21 15:43:50 +02:00
committed by GitHub

View File

@@ -42,7 +42,7 @@ export default function APIKeys() {
return response.json();
})
.then((data) => {
data.status === 'ok' &&
data.success === true &&
setApiKeys((previous) => previous.filter((elem) => elem.id !== id));
})
.catch((error) => {