diff --git a/erpnext/public/js/hub/hub_form.js b/erpnext/public/js/hub/hub_form.js index fe39793f15c..130a0db45c6 100644 --- a/erpnext/public/js/hub/hub_form.js +++ b/erpnext/public/js/hub/hub_form.js @@ -106,7 +106,7 @@ erpnext.hub.ItemPage = class ItemPage extends erpnext.hub.HubForm{ category_field.read_only = 1; } - fields.push(category_field); + fields.unshift(category_field); return fields; } diff --git a/erpnext/public/js/hub/hub_page.js b/erpnext/public/js/hub/hub_page.js index f333feedb19..46e5ce44931 100644 --- a/erpnext/public/js/hub/hub_page.js +++ b/erpnext/public/js/hub/hub_page.js @@ -13,14 +13,12 @@ erpnext.hub.HubListing = class HubListing extends frappe.views.BaseList { setup_fields() { return this.get_meta() .then(r => { - // console.log('fields then', this.doctype); this.meta = r.message || this.meta; frappe.model.sync(this.meta); }); } get_meta() { - // console.log('get_meta', this.doctype); return new Promise(resolve => frappe.call('erpnext.hub_node.get_meta', {doctype: this.doctype}, resolve)); } @@ -51,7 +49,6 @@ erpnext.hub.HubListing = class HubListing extends frappe.views.BaseList { update_data(r) { const data = r.message; - console.log('update data', data); if (this.start === 0) { this.data = data; @@ -79,7 +76,6 @@ erpnext.hub.HubListing = class HubListing extends frappe.views.BaseList { render_image_view() { let data = this.data; - // console.log('this.data render', this.data); if (this.start === 0) { this.$result.html('