Skip to content

Commit 5a4c06b

Browse files
committed
Use thumbnails from record if available, when creating stub folder
When previewing an unlisted share record, we need a mock folder for it to be stored in the data service and provide it to different components from the share flow. When creating it, we should use the thumbnails from the current record if that is available or else use generated previews. Issue: PER-10371 Unlisted share record preview broken
1 parent e7104be commit 5a4c06b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/share-preview/resolves/preview-resolve.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ export class PreviewResolveService {
9191
if (!sharePreviewVO.previewToggle && !showPreview) {
9292
const dummy = dummyItems[0];
9393
record = cloneDeep(record);
94-
record.thumbURL200 = dummy.thumbURL200;
95-
record.thumbURL500 = dummy.thumbURL500;
96-
record.thumbURL1000 = dummy.thumbURL1000;
94+
record.thumbURL200 = record.thumbURL200 || dummy.thumbURL200;
95+
record.thumbURL500 = record.thumbURL500 || dummy.thumbURL500;
96+
record.thumbURL1000 = record.thumbURL1000 || dummy.thumbURL1000;
9797
record.archiveNbr = dummy.archiveNbr;
9898
}
9999

0 commit comments

Comments
 (0)