Fix onClick not a function

This commit is contained in:
Lim Chee Aun 2022-12-21 01:18:37 +08:00
parent a9538e6cf0
commit f6e3c979af

View file

@ -630,7 +630,7 @@ video = Video clip
audio = Audio track
*/
function Media({ media, showOriginal, onClick }) {
function Media({ media, showOriginal, onClick = () => {} }) {
const { blurhash, description, meta, previewUrl, remoteUrl, url, type } =
media;
const { original, small, focus } = meta || {};