Removed references to previously deleted file

This commit is contained in:
Sugui 2024-03-03 13:51:39 +01:00
parent b16fa2e180
commit fb961e19f0
1 changed files with 1 additions and 3 deletions

View File

@ -1,5 +1,4 @@
import Button from "../Button/Button";
import { GelbooruAPIResponse } from "../../types/GelbooruAPIResponse";
import { useEffect, useState } from "react";
export interface ImageModeratorProps {
@ -23,8 +22,7 @@ export default function ImageModerator({ acceptLabel, discardLabel }: ImageModer
return response.json();
})
.then(data => {
const gelbooruData: GelbooruAPIResponse = data as GelbooruAPIResponse;
const imageUrl = gelbooruData.post[0].file_url;
const imageUrl = data.post[0].file_url;
setImageSrc(imageUrl);
setImageAlt(imageUrl);
})