diff --git a/erpnext/public/js/hub/PageContainer.vue b/erpnext/public/js/hub/PageContainer.vue
index 794d4cb334..bb9ba3e8d2 100644
--- a/erpnext/public/js/hub/PageContainer.vue
+++ b/erpnext/public/js/hub/PageContainer.vue
@@ -86,6 +86,10 @@ export default {
}
}
+ if (!route) {
+ return NotFound;
+ }
+
return route_map[route];
}
}
diff --git a/erpnext/public/js/hub/Sidebar.vue b/erpnext/public/js/hub/Sidebar.vue
new file mode 100644
index 0000000000..208d8fe34c
--- /dev/null
+++ b/erpnext/public/js/hub/Sidebar.vue
@@ -0,0 +1,102 @@
+
+
+
+
+
+
+
diff --git a/erpnext/public/js/hub/marketplace.js b/erpnext/public/js/hub/marketplace.js
index c54a402377..95a7542863 100644
--- a/erpnext/public/js/hub/marketplace.js
+++ b/erpnext/public/js/hub/marketplace.js
@@ -3,6 +3,7 @@ import './vue-plugins';
// components
import PageContainer from './PageContainer.vue';
+import Sidebar from './Sidebar.vue';
import { ProfileDialog } from './components/profile_dialog';
// helpers
@@ -57,79 +58,10 @@ erpnext.hub.Marketplace = class Marketplace {
make_sidebar() {
this.$sidebar = this.$parent.find('.layout-side-section').addClass('hidden-xs');
- this.make_sidebar_nav_buttons();
- this.make_sidebar_categories();
- }
-
- make_sidebar_nav_buttons() {
- let $nav_group = this.$sidebar.find('[data-nav-buttons]');
- if (!$nav_group.length) {
- $nav_group = $('