Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Alba María Álvarez
/
front_recipes
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1c80b29d
authored
Sep 02, 2025
by
Alba María Álvarez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bugfix(recipeStore): solucionado error al obtener la receta
parent
b3f4568f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
src/stores/recipeStore.js
src/stores/recipeStore.js
View file @
1c80b29d
...
...
@@ -9,7 +9,6 @@ export const useRecipeStore = defineStore('recipe', {
pageSize
:
6
,
totalElements
:
0
,
totalPages
:
0
,
//sortBy: 'createdAt',
sortDirection
:
'desc'
}),
actions
:
{
...
...
@@ -21,7 +20,6 @@ export const useRecipeStore = defineStore('recipe', {
this
.
totalPages
=
response
.
totalPages
;
this
.
currentPage
=
response
.
number
;
this
.
pageSize
=
size
;
//this.sortBy = sortBy;
this
.
sortDirection
=
sortDirection
;
}
catch
(
error
)
{
console
.
error
(
'Error al obtener la lista de recetas:'
,
error
);
...
...
@@ -47,9 +45,10 @@ export const useRecipeStore = defineStore('recipe', {
},
async
readDetail
(
id
)
{
try
{
const
response
=
await
recipeService
.
readDetail
(
id
);
this
.
recipe
=
response
.
content
;
const
data
=
await
recipeService
.
readDetail
(
id
);
this
.
recipe
=
data
;
}
catch
(
error
)
{
console
.
error
(
'Error al obtener los detalles de la receta:'
,
error
);
this
.
recipe
=
null
;
throw
error
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment