Skip to content

Commit

Permalink
select the display order of each story (#1068)
Browse files Browse the repository at this point in the history
Co-authored-by: Taron Chatoyan <chatoyan48@gmailc.com>
  • Loading branch information
t-chatoyan and Taron Chatoyan committed Mar 19, 2024
1 parent 188dc44 commit 196d590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/use-cases/stories/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
const {data} = await useAsyncData('stories', () => {
return $fetch(`${config.public.apiUrl}/customer-stories?page=${currentPage}&size=${itemsPerPage}`)
})
stories.value = data.value.results
stories.value = data.value.results.sort(() => Math.random() - 0.5);
totalStories.value = data.value.total
}
Expand Down

0 comments on commit 196d590

Please sign in to comment.