Skip to content

Commit

Permalink
fix function category_tree(root_category_list, callback, options)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanasimi committed Dec 4, 2024
1 parent d84aa03 commit 4775287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/net/wiki/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -1800,7 +1800,7 @@ function module_code(library_namespace) {
categorymembers_options.namespace = category_tree.default_namespace;
}

if (options.depth > 0
if (options && options.depth > 0
&& typeof categorymembers_options.cmtype === 'string'
&& !categorymembers_options.cmtype.includes('subcat')) {
categorymembers_options.cmtype += '|subcat';
Expand Down

0 comments on commit 4775287

Please sign in to comment.