BigW Consortium Gitlab

Commit acb68ae6 by Filipa Lacerda

Resolve 500 error

parent 72f76c4d
......@@ -6,7 +6,7 @@ Vue.http.interceptors.push((request, next) => {
Vue.activeResources = Vue.activeResources ? Vue.activeResources + 1 : 1;
next((response) => {
if (typeof response.data === 'string') {
if (typeof response.data === 'string' && response.status !== 500) {
response.data = JSON.parse(response.data);
}
......
......@@ -10,7 +10,6 @@ class Projects::EnvironmentsController < Projects::ApplicationController
def index
@environments = project.environments
.includes(:last_deployment)
.with_state(params[:scope] || :available)
respond_to do |format|
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment