Merge pull request #1645 from smilerz/fix_sql_debug

fix sql debug button in search
This commit is contained in:
vabene1111 2022-03-15 11:33:23 +01:00 committed by GitHub
commit 5459e293d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1148,7 +1148,10 @@ export default {
},
showSQL: function () {
let params = this.buildParams()
this.genericAPI(this.Models.RECIPE, this.Actions.LIST, params).then((result) => {})
params.options.query.debug = true
this.genericAPI(this.Models.RECIPE, this.Actions.LIST, params).then((result) => {
console.log(result.data)
})
},
// TODO refactor to combine with load KeywordChildren
loadFoodChildren({ action, parentNode, callback }) {