original might be undefined??
This commit is contained in:
parent
e6d6adb480
commit
eb896dc5a5
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ audio = Audio track
|
||||||
function Media({ media, showOriginal, autoAnimate, onClick = () => {} }) {
|
function Media({ media, showOriginal, autoAnimate, onClick = () => {} }) {
|
||||||
const { blurhash, description, meta, previewUrl, remoteUrl, url, type } =
|
const { blurhash, description, meta, previewUrl, remoteUrl, url, type } =
|
||||||
media;
|
media;
|
||||||
const { original, small, focus } = meta || {};
|
const { original = {}, small, focus } = meta || {};
|
||||||
|
|
||||||
const width = showOriginal ? original?.width : small?.width;
|
const width = showOriginal ? original?.width : small?.width;
|
||||||
const height = showOriginal ? original?.height : small?.height;
|
const height = showOriginal ? original?.height : small?.height;
|
||||||
|
|
Loading…
Add table
Reference in a new issue