From 11bafca85ee2c3f4d4fac5f2ea6b874059099211 Mon Sep 17 00:00:00 2001
From: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Date: Tue, 1 Dec 2020 16:38:47 -0800
Subject: Fix server LED switch value on error

Add error state handling in the ServerLed store to make sure the
UI accurately reflects the state if there is an error.

Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: I7f3647df9f5a32e241005eb7058a7cda1e0ba36a
---
 src/views/Overview/OverviewQuickLinks.vue | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'src/views/Overview/OverviewQuickLinks.vue')

diff --git a/src/views/Overview/OverviewQuickLinks.vue b/src/views/Overview/OverviewQuickLinks.vue
index 82975f57..1b84ce7a 100644
--- a/src/views/Overview/OverviewQuickLinks.vue
+++ b/src/views/Overview/OverviewQuickLinks.vue
@@ -92,9 +92,7 @@ export default {
           indicatorLedActiveState
         )
         .then((message) => this.successToast(message))
-        .catch(({ message }) => {
-          this.errorToast(message);
-        });
+        .catch(({ message }) => this.errorToast(message));
     },
   },
 };
-- 
cgit v1.2.3

