fix(marketplace): autocomplete hub category
This commit is contained in:
parent
fa170e3c84
commit
6d4f4bef7e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user