mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 13:19:16 -05:00
small tweaks and fixes
This commit is contained in:
@@ -356,7 +356,7 @@ export default {
|
||||
this.settings.search_keywords = []
|
||||
for (let x of urlParams.getAll('keyword')) {
|
||||
let keyword = {id: x, name: 'loading'}
|
||||
this.settings.search_keywords.push(keyword)
|
||||
this.settings.search_keywords.push(keyword.id)
|
||||
apiClient.retrieveKeyword(x).then(result => {
|
||||
this.$set(this.settings.search_keywords, this.settings.search_keywords.indexOf(keyword), result.data)
|
||||
})
|
||||
|
||||
@@ -69,7 +69,7 @@ export default {
|
||||
this.objects = this.sticky_options.concat(result.data.results)
|
||||
})
|
||||
} else {
|
||||
apiClient[this.search_function]({query: {query: query, limit: 10}}).then(result => {
|
||||
apiClient[this.search_function]({query: {query: query, limit: this.limit}}).then(result => {
|
||||
this.objects = this.sticky_options.concat(result.data)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user