1
0
mirror of https://github.com/TandoorRecipes/recipes.git synced 2026-01-11 00:58:32 -05:00

fixed page reset in search page

This commit is contained in:
vabene1111
2025-08-17 10:31:51 +02:00
parent 5faa74a75d
commit a3460bc023

View File

@@ -244,9 +244,10 @@ function searchRecipes(options: VDataTableUpdateOptions) {
let api = new ApiApi() let api = new ApiApi()
loading.value = true loading.value = true
page.value = options.page
let searchParameters = { let searchParameters = {
query: query.value, query: query.value,
page: page.value, page: options.page,
pageSize: pageSize.value, pageSize: pageSize.value,
} as ApiRecipeListRequest } 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() { function reset() {
page.value = 1 page.value = 1