yarn and composer updates

This commit is contained in:
Matthew Penner 2021-09-10 15:26:02 -06:00
parent d167ef1f89
commit e4fc0f5ac3
No known key found for this signature in database
GPG key ID: 030E4AB751DC756F
19 changed files with 3022 additions and 2342 deletions

View file

@ -48,7 +48,7 @@ export default ({ backup }: Props) => {
setLoading(true);
clearFlashes('backups');
deleteBackup(uuid, backup.uuid)
.then(() => mutate(data => ({
.then(async () => await mutate(data => ({
...data!,
items: data!.items.filter(b => b.uuid !== backup.uuid),
backupCount: data!.backupCount - 1,
@ -83,7 +83,7 @@ export default ({ backup }: Props) => {
}
http.post(`/api/client/servers/${uuid}/backups/${backup.uuid}/lock`)
.then(() => mutate(data => ({
.then(async () => await mutate(data => ({
...data!,
items: data!.items.map(b => b.uuid !== backup.uuid ? b : {
...b,