mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 23:06:08 -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) {
|
promiseForCategory.then(function (categories_list) {
|
||||||
|
|
||||||
|
categories_list = $.grep(Object.values(categories_list), function (e) {
|
||||||
|
return (e.length > 0) ? e : '';
|
||||||
|
});
|
||||||
|
|
||||||
level = 0;
|
level = 0;
|
||||||
$.each(categories_list, function (index, value) {
|
$.each(categories_list, function (index, value) {
|
||||||
level++;
|
level++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user