Merge branch 'pojem-mobile-css' of git.kompot.si:yufu/manifest into pojem-mobile-css

pull/41/head
janko 2024-01-19 15:30:36 +01:00
commit 4b6ee8e6b9
1 changed files with 2 additions and 2 deletions

View File

@ -6,11 +6,11 @@ export const usePojmiStore = defineStore('pojmi', {
async naloziPojme() {
const { jsonApiUrl, headers, deserialize } = useApi()
const data = await $fetch(`${jsonApiUrl}/node/concept`, { headers })
const data = await $fetch(`${jsonApiUrl}/node/concept?sort=created`, { headers })
this.pojmi = await deserialize(data, s => ({
id: s.id,
naslov: s.title,
tekst: s.body.processed,
tekst: s.body ? s.body.processed : '',
media: s.field_media
}), 'naslov')
},