Fix sending request to /textures/undefined

This commit is contained in:
Haowei Wen 2023-02-10 19:30:04 +00:00
parent 5a5dbea05b
commit 908f191ac8

View File

@ -257,7 +257,9 @@ const Show: React.FC = () => {
})()
const canEdit = currentUid === texture.uploader || isAdmin
const textureUrl = `${blessing.base_url}/textures/${texture.hash}`
const textureUrl = texture.hash
? `${blessing.base_url}/textures/${texture.hash}`
: ''
return (
<>