Home: Category-wise Items
diff --git a/erpnext/public/js/hub/pages/home.js b/erpnext/public/js/hub/pages/home.js
index 6a49f62..b8e6f01 100644
--- a/erpnext/public/js/hub/pages/home.js
+++ b/erpnext/public/js/hub/pages/home.js
@@ -37,5 +37,15 @@
html = get_item_card_container_html(data.items_by_country, __('Near you'));
this.$wrapper.append(html);
}
+
+ const category_items = data.category_items;
+
+ if (category_items) {
+ Object.keys(category_items).map(category => {
+ const items = category_items[category];
+ html = get_item_card_container_html(items, __(category));
+ this.$wrapper.append(html);
+ });
+ }
}
-}
\ No newline at end of file
+}