Removed references to previously deleted file
This commit is contained in:
parent
b16fa2e180
commit
fb961e19f0
|
@ -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);
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue