Skip to content

Commit

Permalink
fix: handle case where wiki page is not added to wiki space
Browse files Browse the repository at this point in the history
  • Loading branch information
netchampfaris committed Dec 6, 2024
1 parent a7f9342 commit b97718b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wiki/wiki/doctype/wiki_page/wiki_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def get_context(self, context):

wiki_settings = frappe.get_single("Wiki Settings")
wiki_space_name = frappe.get_value("Wiki Group Item", {"wiki_page": self.name}, "parent")
wiki_space = frappe.get_doc("Wiki Space", wiki_space_name)
wiki_space = frappe.get_doc("Wiki Space", wiki_space_name) if wiki_space_name else frappe._dict()

context.no_cache = 1
context.navbar_search = wiki_settings.add_search_bar
Expand Down

0 comments on commit b97718b

Please sign in to comment.