Skip to content

Commit c9dc60a

Browse files
authored
Merge pull request #2880 from nextcloud/skjnldsv-patch-1
fix: make sure etag is a string
2 parents e5fe1cf + e6913a2 commit c9dc60a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/viewer/apps/viewer/src/utils/previewUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function getPreviewIfAny({ fileid, filename, previewUrl, hasPreview, davP
2727
+ `&x=${Math.floor(screen.width * devicePixelRatio)}`
2828
+ `&y=${Math.floor(screen.height * devicePixelRatio)}`
2929
+ '&a=true'
30-
+ (etag !== null ? `&etag=${etag.replace(/"/g, '')}` : '')
30+
+ (etag ? `&etag=${String(etag).replace(/"/g, '')}` : '')
3131

3232
if (hasPreview) {
3333
// TODO: find a nicer standard way of doing this?

0 commit comments

Comments
 (0)