Resolve 500 error
This commit is contained in:
parent
72f76c4d49
commit
acb68ae69e
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue