Fix scrape dialog not showing when scraping url (#1632)

This commit is contained in:
WithoutPants
2021-08-11 15:54:29 +10:00
committed by GitHub
parent d4d45d5a06
commit 59c6fe046d
2 changed files with 2 additions and 2 deletions

View File

@@ -669,7 +669,7 @@ export const PerformerEditPanel: React.FC<IPerformerDetails> = ({
}
function maybeRenderScrapeDialog() {
if (!scrapedPerformer || !scraper) {
if (!scrapedPerformer) {
return;
}

View File

@@ -130,7 +130,7 @@ export const PerformerScrapeDialog: React.FC<IPerformerScrapeDialogProps> = (
) => {
const intl = useIntl();
const endpoint = (props.scraper as IStashBox).endpoint ?? undefined;
const endpoint = (props.scraper as IStashBox)?.endpoint ?? undefined;
function getCurrentRemoteSiteID() {
if (!endpoint) {