code cleanup, fix errors

This commit is contained in:
Matthew Penner 2021-09-12 15:56:47 -06:00
parent 8acce201d6
commit 222300ff17
No known key found for this signature in database
GPG key ID: 030E4AB751DC756F
8 changed files with 58 additions and 57 deletions

View file

@ -41,7 +41,7 @@ export default ({ database, className }: Props) => {
});
const submit = (values: { confirm: string }, { setSubmitting }: FormikHelpers<{ confirm: string }>) => {
clearFlashes();
clearFlashes(undefined);
deleteServerDatabase(uuid, database.id)
.then(() => {
setVisible(false);

View file

@ -22,7 +22,7 @@ export default ({ databaseId, onUpdate }: {
const rotate = () => {
setLoading(true);
clearFlashes();
clearFlashes(undefined);
rotateDatabasePassword(server.uuid, databaseId)
.then(database => onUpdate(database))