]> git.immae.eu Git - github/bastienwirtz/homer.git/commitdiff
Small refactor to remove one redundant line.
authorluixal <luixal@gmail.com>
Tue, 11 Oct 2022 17:47:48 +0000 (19:47 +0200)
committerBastien Wirtz <bastien.wirtz@gmail.com>
Thu, 13 Oct 2022 19:51:06 +0000 (21:51 +0200)
src/components/services/Proxmox.vue

index 092d07739f47669b332f000b7dbe337b4a95fbde..1d2c2c93ef61515cde6bb7acc80c993fa9043739 100644 (file)
           this.vms.total += vms.data.length;
           this.vms.running += vms.data.filter( i => i.status === 'running' ).length;
           this.error = false;
-          this.loading = false;
         } catch(err) {
           console.log(err);
-          this.loading = false;
           this.error = true;
         }
+        this.loading = false;
       },
     },
   };