Skip to content

Commit

Permalink
Merge pull request #1354 from sayanm16/fix/api-key-list-state
Browse files Browse the repository at this point in the history
Fix/api key list state
  • Loading branch information
dartpain authored Oct 21, 2024
2 parents 98b90b8 + 0c46f3c commit 3098f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/settings/APIKeys.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 3098f99

Please sign in to comment.