fix: Use default collection thumbnail if selected (#2331)
Fixes issue where collection thumbnail is always the screenshot, even if a Browsertrix provided default thumbnail is selected after choosing the screenshot.
This commit is contained in:
parent
28d39d8c4d
commit
f8976e688a
@ -71,10 +71,9 @@ export class CollectionsGrid extends BtrixElement {
|
||||
>
|
||||
<btrix-collection-thumbnail
|
||||
src=${ifDefined(
|
||||
collection.thumbnail?.path ||
|
||||
Object.entries(CollectionThumbnail.Variants).find(
|
||||
([name]) => name === collection.defaultThumbnailName,
|
||||
)?.[1].path,
|
||||
Object.entries(CollectionThumbnail.Variants).find(
|
||||
([name]) => name === collection.defaultThumbnailName,
|
||||
)?.[1].path || collection.thumbnail?.path,
|
||||
)}
|
||||
></btrix-collection-thumbnail>
|
||||
${this.renderDateBadge(collection)}
|
||||
|
Loading…
Reference in New Issue
Block a user