Skip to content

Commit

Permalink
some qol changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kayra1 committed Aug 13, 2024
1 parent 57e6c3a commit 17c5048
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ui/src/app/certificate_requests/asideForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default function CertificateRequestsAsidePanel(): JSX.Element {
})
const [CSRPEMString, setCSRPEMString] = useState<string>("")
const handleTextChange = (event: ChangeEvent<HTMLTextAreaElement>) => {
setErrorText("")
setCSRPEMString(event.target.value);
}
const handleFileChange = (event: ChangeEvent<HTMLInputElement>) => {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export async function postCSR(params: { authToken: string, csr: string }) {
},
body: params.csr.trim()
})
const responseText = await response.text()
if (!response.ok) {
const responseText = await response.text()
throw new Error(`${response.status}: ${HTTPStatus(response.status)}. ${responseText}`)
}
return response.json()
Expand Down

0 comments on commit 17c5048

Please sign in to comment.