mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-01 15:23:05 +00:00
fix: fix add new page
This commit is contained in:
parent
2a2a1f654e
commit
d58f0c1a26
@ -427,7 +427,7 @@ class Wiki2PagesView(APIView):
|
||||
folder_id = request.data.get('folder_id', None)
|
||||
wiki_config = get_wiki_config(repo_id, request.user.username)
|
||||
|
||||
navigation = wiki_config.get('navigation')
|
||||
navigation = wiki_config.get('navigation', [])
|
||||
if not folder_id:
|
||||
page_ids = {element.get('id') for element in navigation if element.get('type') != 'folder'}
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user