From bb1edd35721d34ce394ab9e51c4095015f26b185 Mon Sep 17 00:00:00 2001
From: "Adam T. Carpenter" <atc@53hor.net>
Date: Mon, 28 Dec 2020 08:43:44 -0500
Subject: fixed images that were rotated with exif tags not displaying rotated

---
 iridescence/src/views/Admin.vue | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

(limited to 'iridescence/src/views/Admin.vue')

diff --git a/iridescence/src/views/Admin.vue b/iridescence/src/views/Admin.vue
index f1cf227..6bb161a 100644
--- a/iridescence/src/views/Admin.vue
+++ b/iridescence/src/views/Admin.vue
@@ -29,13 +29,17 @@ export default {
     ProductSearch
   },
   beforeRouteEnter: (to, from, next) => {
-    fetch(process.env.VUE_APP_LOGIN_URL).then(res => {
-      if (res.status == 401) {
-        next(false);
-      } else {
-        next();
-      }
-    });
+    if (!process.env.VUE_APP_LOGIN_URL) {
+      next();
+    } else {
+      fetch(process.env.VUE_APP_LOGIN_URL).then(res => {
+        if (res.status == 401) {
+          next(false);
+        } else {
+          next();
+        }
+      });
+    }
   }
 };
 </script>
-- 
cgit v1.2.3

