add base image to node
This commit is contained in:
@@ -40,6 +40,11 @@ export default {
|
||||
node.variant = [{ id: 0 }]
|
||||
}
|
||||
|
||||
if (node.images && node.images.length) {
|
||||
const { url, alt, id } = node.images[0]
|
||||
node.image = { alt, id, url: url.replace('api', 'api/sites/default/files') }
|
||||
}
|
||||
|
||||
if ('creations' in node) {
|
||||
if (node.creations) {
|
||||
if (!Array.isArray(node.children)) {
|
||||
|
||||
Reference in New Issue
Block a user