Skip to content
Snippets Groups Projects
Commit 4cc2afdf authored by skv's avatar skv
Browse files

Fix url generation error on hook invalid create

parent bc40efa1
No related branches found
No related tags found
1 merge request!6708Fix url generation error on hook invalid create
Loading
Loading
@@ -18,7 +18,7 @@ class Projects::HooksController < Projects::ApplicationController
if @hook.valid?
redirect_to project_hooks_path(@project)
else
@hooks = @project.hooks
@hooks = @project.hooks.select(&:persisted?)
render :index
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment