This commit is contained in:
xds
2026-02-24 12:47:19 +03:00
parent a1d37ac517
commit 122c5a7cbc
5 changed files with 38 additions and 7 deletions

View File

@@ -133,9 +133,9 @@ export const useIdeaStore = defineStore('ideas', () => {
}
// Assuming getIdeaGenerations is separate from getIdea
async function fetchIdeaGenerations(ideaId, limit = 100, offset = 0) {
async function fetchIdeaGenerations(ideaId, limit = 100, offset = 0, onlyLiked = false) {
try {
const response = await ideaService.getIdeaGenerations(ideaId, limit, offset);
const response = await ideaService.getIdeaGenerations(ideaId, limit, offset, onlyLiked);
return response;
} catch (err) {
console.error('Error fetching idea generations:', err);