Skip to content

Commit f291d59

Browse files
committed
fix: get new tree if there are no children and no parent
1 parent b80badc commit f291d59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/site_repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def get_tree_from_db(self):
265265
tree = get_tree_struct(db.session, webpages)
266266
# If the tree is empty, load from the repository
267267
if not tree or (
268-
tree.get("children") and not tree.get("parent_id")
268+
not tree.get("children") and not tree.get("parent_id")
269269
):
270270
msg = (
271271
"Reloading incomplete tree root "

0 commit comments

Comments
 (0)