fix: homepage not working (#38755)

This commit is contained in:
rohitwaghchaure
2023-12-14 22:47:32 +05:30
committed by GitHub
parent e7e23fbc96
commit d6201ce5c7
2 changed files with 20 additions and 8 deletions

View File

@@ -2,14 +2,6 @@
// For license information, please see license.txt
frappe.ui.form.on('Homepage', {
setup: function(frm) {
frm.fields_dict["products"].grid.get_field("item").get_query = function() {
return {
filters: {'published': 1}
}
}
},
refresh: function(frm) {
frm.add_custom_button(__('Set Meta Tags'), () => {
frappe.utils.set_meta_tag('home');