diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 5b108311b..296ad5421 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -226,7 +226,7 @@ class ProjectsController < ApplicationController end def dt_state_load - render json: { state: current_team.current_view_state(current_user).state.dig('projects', 'table') } + render json: { state: current_team&.current_view_state(current_user)&.state&.dig('projects', 'table') } end private diff --git a/app/views/projects/index.html.erb b/app/views/projects/index.html.erb index b1c376bfe..f41768605 100644 --- a/app/views/projects/index.html.erb +++ b/app/views/projects/index.html.erb @@ -1,7 +1,7 @@ <% provide(:head_title, t("projects.index.head_title")) %> <% if current_team %> - <%= render partial: "shared/sidebar", locals: {page: 'project'} %> + <%= render partial: "shared/sidebar", locals: { page: 'project' } %> <%= render partial: "shared/secondary_navigation" %> diff --git a/app/views/projects/index/modals/_new.html.erb b/app/views/projects/index/modals/_new.html.erb index a4ebe3f9d..301c13d21 100644 --- a/app/views/projects/index/modals/_new.html.erb +++ b/app/views/projects/index/modals/_new.html.erb @@ -1,5 +1,3 @@ - - <% if can_create_projects?(current_team) %>