Explorar o código

Update allocation.js

Signed-off-by: Stephen Atwell <78044713+stephenatwell@users.noreply.github.com>
Stephen Atwell %!s(int64=3) %!d(string=hai) anos
pai
achega
e3eadacba3
Modificáronse 1 ficheiros con 1 adicións e 10 borrados
  1. 1 10
      ui/src/services/allocation.js

+ 1 - 10
ui/src/services/allocation.js

@@ -1,16 +1,7 @@
 import axios from 'axios';
 
-
-func getenv(key, fallback string) string {
-    value := os.Getenv(key);
-    if len(value) == 0 {
-        return fallback;
-    }
-    return value;
-}
-
 class AllocationService {
-  BASE_URL = getenv('BASE_URL','http://localhost:9090/allocation');
+  BASE_URL = process.env.BASE_URL || 'http://localhost:9090/allocation';
 
   async fetchAllocation(win, aggregate, options) {
     const { accumulate, filters, } = options;