Skip to content

Commit

Permalink
apply review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mabulgu committed Oct 11, 2024
1 parent 538ef2b commit ea7b5a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,10 @@ export default webpackMockServer.add((app, helper) => {
keys.delete(ORG_ID);
if (modelIds.has(ORG_ID)) {
modelIds.delete(ORG_ID);
} else {
res.sendStatus(404);
}
res.sendStatus(200);
} else {
res.sendStatus(404);
res.sendStatus(400);
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ export const ModelSettingsKeyDeletionModal = (
onClose={handleModalToggle}
data-testid={"model-settings-key-deletion-modal"}
actions={[
<BusyButton
<Button
key="delete"
variant="danger"
onClick={deleteKey}
isBusy={isDeleting}
isDisabled={isDeleting}
data-testid={"model-settings-key-deletion-modal__delete-button"}
>
{t("Delete")}
</BusyButton>,
</Button>,
<Button key="cancel" variant="link" onClick={handleCancel}>
{t("Cancel")}
</Button>,
Expand Down

0 comments on commit ea7b5a8

Please sign in to comment.