mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-10 00:28:22 -05:00
fixed page reset in search page
This commit is contained in:
@@ -244,9 +244,10 @@ function searchRecipes(options: VDataTableUpdateOptions) {
|
||||
let api = new ApiApi()
|
||||
loading.value = true
|
||||
|
||||
page.value = options.page
|
||||
let searchParameters = {
|
||||
query: query.value,
|
||||
page: page.value,
|
||||
page: options.page,
|
||||
pageSize: pageSize.value,
|
||||
} as ApiRecipeListRequest
|
||||
|
||||
@@ -268,7 +269,7 @@ function searchRecipes(options: VDataTableUpdateOptions) {
|
||||
}
|
||||
|
||||
/**
|
||||
* reset all search parameters and perform emtpy searchj
|
||||
* reset all search parameters and perform emtpy search
|
||||
*/
|
||||
function reset() {
|
||||
page.value = 1
|
||||
|
||||
Reference in New Issue
Block a user