| | |
| | | console.error('No store connected to renderer'); |
| | | return; |
| | | } |
| | | |
| | | console.log(items); |
| | | |
| | | // Handle empty state |
| | | if (items.length === 0) { |
| | |
| | | item.id, |
| | | item.id |
| | | ]; |
| | | if (this.store.config.storeName === 'progress') { |
| | | [ |
| | | img.src, |
| | | img.alt, |
| | | ] = [ |
| | | item.images[item.fields['timeline'][0].post_thumbnail]?.medium??'', |
| | | item.images[item.fields['timeline'][0].post_thumbnail]?.alt??'', |
| | | ]; |
| | | } else { |
| | | // if (this.store.config.storeName === 'progress') { |
| | | // [ |
| | | // img.src, |
| | | // img.alt, |
| | | // ] = [ |
| | | // item.images[item.fields['timeline'][0].post_thumbnail]?.medium??'', |
| | | // item.images[item.fields['timeline'][0].post_thumbnail]?.alt??'', |
| | | // ]; |
| | | // } else { |
| | | [ |
| | | img.src, |
| | | img.alt, |
| | |
| | | item.images[item.fields.post_thumbnail]?.medium??'', |
| | | item.images[item.fields.post_thumbnail]?.alt??'', |
| | | ]; |
| | | } |
| | | // } |
| | | return card; |
| | | } |
| | | |