fix(marketplace): autocomplete hub category

This commit is contained in:
Mangesh-Khairnar 2019-12-05 01:01:01 +05:30
parent fa170e3c84
commit 6d4f4bef7e

View File

@ -31,7 +31,8 @@ function ItemPublishDialog(primary_action, secondary_action) {
hub.call('get_categories')
.then(categories => {
categories = categories.map(d => d.name);
dialog.fields_dict.hub_category.set_data(categories);
dialog.fields_dict.hub_category.df.options = categories;
dialog.fields_dict.hub_category.set_options();
});
return dialog;