Merge branch 'dev' into dev

This commit is contained in:
mrjvs 2023-12-30 13:03:01 +01:00 committed by GitHub
commit 004238d1ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "movie-web",
"version": "4.2.0",
"version": "4.2.1",
"private": true,
"homepage": "https://movie-web.app",
"scripts": {

View File

@ -63,7 +63,8 @@ function useBaseScrape() {
const lastIdTmp = lastId.current;
setSources((s) => {
if (s[id]) s[id].status = "pending";
if (lastIdTmp && s[lastIdTmp]) s[lastIdTmp].status = "success";
if (lastIdTmp && s[lastIdTmp] && s[lastIdTmp].status === "pending")
s[lastIdTmp].status = "success";
return { ...s };
});
setCurrentSource(id);

View File

@ -37,7 +37,7 @@ export function ScrapeErrorPart(props: ScrapeErrorPartProps) {
if (v.reason) str += `${v.reason}\n`;
if (v.error?.message)
str += `${v.error.name ?? "unknown"}: ${v.error.message}\n`;
if (v.error) str += `${v.error.toString()}\n`;
else if (v.error) str += `${v.error.toString()}\n`;
});
return str;
}, [props, location]);