Просмотр исходного кода

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 3 лет назад
Родитель
Сommit
9c78cc879c
1 измененных файлов с 1 добавлено и 1 удалено
  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}';
 
   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`
     }