mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 14:16:39 +01:00
Fix onClick not a function
This commit is contained in:
parent
a9538e6cf0
commit
f6e3c979af
1 changed files with 1 additions and 1 deletions
|
@ -630,7 +630,7 @@ video = Video clip
|
||||||
audio = Audio track
|
audio = Audio track
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function Media({ media, showOriginal, onClick }) {
|
function Media({ media, showOriginal, 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 || {};
|
||||||
|
|
Loading…
Reference in a new issue