narrative : fix data fetching (build URL from location)
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 17s
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 17s
This commit is contained in:
parent
ccaec7cfed
commit
4d1183d1af
2 changed files with 6 additions and 12 deletions
|
|
@ -26,7 +26,7 @@ export const useNarrativeStore = defineStore('narrative', () => {
|
|||
title: data.value.title,
|
||||
author: data.value.author,
|
||||
cover: data.value.cover,
|
||||
introduction: data.value.introduction
|
||||
introduction: data.value.introduction,
|
||||
});
|
||||
|
||||
// Recursively flatten children
|
||||
|
|
@ -41,7 +41,7 @@ export const useNarrativeStore = defineStore('narrative', () => {
|
|||
subtitle: child.subtitle,
|
||||
tags: child.tags,
|
||||
cover: child.cover,
|
||||
text: child.text
|
||||
text: child.text,
|
||||
});
|
||||
|
||||
// Add geoformat chapters
|
||||
|
|
@ -53,7 +53,7 @@ export const useNarrativeStore = defineStore('narrative', () => {
|
|||
id: child.id,
|
||||
template: 'chapitre',
|
||||
title: child.title,
|
||||
blocks: child.blocks
|
||||
blocks: child.blocks,
|
||||
});
|
||||
} else if (child.template === 'carte') {
|
||||
items.push({
|
||||
|
|
@ -61,7 +61,7 @@ export const useNarrativeStore = defineStore('narrative', () => {
|
|||
template: 'carte',
|
||||
title: child.title,
|
||||
tags: child.tags,
|
||||
text: child.text
|
||||
text: child.text,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -122,6 +122,6 @@ export const useNarrativeStore = defineStore('narrative', () => {
|
|||
|
||||
// Actions
|
||||
loadNarrative,
|
||||
reset
|
||||
reset,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue