Fix sending request to /textures/undefined
This commit is contained in:
parent
5a5dbea05b
commit
908f191ac8
|
|
@ -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 (
|
||||
<>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user