提交 acb68ae6 编写于 作者: F Filipa Lacerda

Resolve 500 error

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册