mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 00:44:45 +00:00
fix(marketplace): autocomplete hub category
This commit is contained in:
@@ -31,7 +31,8 @@ function ItemPublishDialog(primary_action, secondary_action) {
|
|||||||
hub.call('get_categories')
|
hub.call('get_categories')
|
||||||
.then(categories => {
|
.then(categories => {
|
||||||
categories = categories.map(d => d.name);
|
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;
|
return dialog;
|
||||||
|
|||||||
Reference in New Issue
Block a user