diff --git a/erpnext/public/js/hub/marketplace.js b/erpnext/public/js/hub/marketplace.js index 07e9858bfe..78cf8468e7 100644 --- a/erpnext/public/js/hub/marketplace.js +++ b/erpnext/public/js/hub/marketplace.js @@ -166,8 +166,10 @@ erpnext.hub.Marketplace = class Marketplace { } if (!Object.keys(this.subpages).includes(route[1])) { - frappe.show_not_found(); - return; + if (!this.subpages.not_found) { + this.subpages.not_found = new erpnext.hub.NotFound(this.$body); + } + route[1] = 'not_found'; } this.update_sidebar(); @@ -783,10 +785,20 @@ erpnext.hub.Publish = class Publish extends SubPage { } } -function get_empty_state(message) { - return `
${message}
-${action}
`: ''} +