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 Button from "../Button/Button";
|
||||||
import { GelbooruAPIResponse } from "../../types/GelbooruAPIResponse";
|
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
|
|
||||||
export interface ImageModeratorProps {
|
export interface ImageModeratorProps {
|
||||||
|
@ -23,8 +22,7 @@ export default function ImageModerator({ acceptLabel, discardLabel }: ImageModer
|
||||||
return response.json();
|
return response.json();
|
||||||
})
|
})
|
||||||
.then(data => {
|
.then(data => {
|
||||||
const gelbooruData: GelbooruAPIResponse = data as GelbooruAPIResponse;
|
const imageUrl = data.post[0].file_url;
|
||||||
const imageUrl = gelbooruData.post[0].file_url;
|
|
||||||
setImageSrc(imageUrl);
|
setImageSrc(imageUrl);
|
||||||
setImageAlt(imageUrl);
|
setImageAlt(imageUrl);
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue