From 5fa57e18598993df2bca0bf88d775fe5202cbfe9 Mon Sep 17 00:00:00 2001 From: zeppi Date: Thu, 24 Dec 2020 11:58:19 -0500 Subject: [PATCH] no resolve undefined pls --- ui/component/fileThumbnail/view.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/component/fileThumbnail/view.jsx b/ui/component/fileThumbnail/view.jsx index 4a5fb2188..ad818c19c 100644 --- a/ui/component/fileThumbnail/view.jsx +++ b/ui/component/fileThumbnail/view.jsx @@ -25,7 +25,7 @@ function FileThumbnail(props: Props) { const hasResolvedClaim = claim !== undefined; React.useEffect(() => { - if (!hasResolvedClaim) { + if (!hasResolvedClaim && uri) { doResolveUri(uri); } }, [hasResolvedClaim, uri, doResolveUri]);