Explorar o código

removing equality check and replacing with contains check
equality check was overritten by overzealous entrypoint script

Signed-off-by: Logan Ballard <loganballard@gmail.com>

Logan Ballard %!s(int64=3) %!d(string=hai) anos
pai
achega
9c78cc879c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ui/src/services/allocation.js

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

@@ -4,7 +4,7 @@ class AllocationService {
   BASE_URL = process.env.BASE_URL || '{PLACEHOLDER_BASE_URL}';
   BASE_URL = process.env.BASE_URL || '{PLACEHOLDER_BASE_URL}';
 
 
   async fetchAllocation(win, aggregate, options) {
   async fetchAllocation(win, aggregate, options) {
-    if (this.BASE_URL === '{PLACEHOLDER_BASE_URL}') {
+    if (this.BASE_URL.includes('PLACEHOLDER_BASE_URL')) {
       this.BASE_URL = `http://localhost:9090/model`
       this.BASE_URL = `http://localhost:9090/model`
     }
     }