show image url as alt
This commit is contained in:
parent
5296f27ed0
commit
737f6bc1a4
|
@ -65,6 +65,7 @@ export default function ImageModerator({
|
||||||
const url = data.url;
|
const url = data.url;
|
||||||
const tags = data.tags;
|
const tags = data.tags;
|
||||||
setImageData({ url, tags });
|
setImageData({ url, tags });
|
||||||
|
setImageAlt(url);
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
setImageAlt("Error");
|
setImageAlt("Error");
|
||||||
|
|
Loading…
Reference in New Issue