code cleanup, fix errors
This commit is contained in:
parent
8acce201d6
commit
222300ff17
8 changed files with 58 additions and 57 deletions
|
@ -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);
|
||||
|
|
|
@ -22,7 +22,7 @@ export default ({ databaseId, onUpdate }: {
|
|||
|
||||
const rotate = () => {
|
||||
setLoading(true);
|
||||
clearFlashes();
|
||||
clearFlashes(undefined);
|
||||
|
||||
rotateDatabasePassword(server.uuid, databaseId)
|
||||
.then(database => onUpdate(database))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue