show image url as alt

This commit is contained in:
Alie 2024-12-12 13:01:23 +01:00
parent 5296f27ed0
commit 737f6bc1a4
1 changed files with 1 additions and 0 deletions

View File

@ -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");