mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
fixed null categories for edit cat
This commit is contained in:
parent
e2b6f7af68
commit
545d8b7094
@ -20,6 +20,11 @@ var promiseForCategory = new Promise(function (resolve) {
|
||||
});
|
||||
|
||||
promiseForCategory.then(function (categories_list) {
|
||||
|
||||
categories_list = $.grep(Object.values(categories_list), function (e) {
|
||||
return (e.length > 0) ? e : '';
|
||||
});
|
||||
|
||||
level = 0;
|
||||
$.each(categories_list, function (index, value) {
|
||||
level++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user