Fix redirect for show_defaults when not IFC model present

pull/7924/head
Wieland Lindenthal 5 years ago
parent 8ee0f7aedb
commit 12e6f920b4
  1. 3
      modules/ifc_models/app/controllers/ifc_models/ifc_models_controller.rb

@ -61,10 +61,11 @@ module ::IFCModels
def show_defaults
if @ifc_models.empty?
redirect_to "index"
redirect_to action: :index
end
@default_ifc_models = @project.ifc_models.defaults
provision_gon(@default_ifc_models)
end
def create

Loading…
Cancel
Save