Skip to content
Snippets Groups Projects
Commit 559ef41d authored by Sebastian Klier's avatar Sebastian Klier
Browse files

improve check if wiki page is persisted

parent dac548b3
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -57,7 +57,7 @@ class Projects::WikisController < Projects::ApplicationController
def create
@page = WikiPages::CreateService.new(@project, current_user, wiki_params).execute
 
if @page
if @page.persisted?
redirect_to(
namespace_project_wiki_path(@project.namespace, @project, @page),
notice: 'Wiki was successfully updated.'
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