mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-16 15:21:48 +03:00
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 = () => {} }) {
|
||||
const { blurhash, description, meta, previewUrl, remoteUrl, url, type } =
|
||||
media;
|
||||
const { original, small, focus } = meta || {};
|
||||
const { original = {}, small, focus } = meta || {};
|
||||
|
||||
const width = showOriginal ? original?.width : small?.width;
|
||||
const height = showOriginal ? original?.height : small?.height;
|
||||
|
|
Loading…
Add table
Reference in a new issue