Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
try to fix thumb
Browse files
src/lib/components/models/image/Image.svelte
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
export let generatedImage: string | undefined;
|
7 |
export let alt: string | undefined;
|
8 |
|
9 |
-
let loaded = 0
|
10 |
</script>
|
11 |
|
12 |
<!-- svelte-ignore a11y-img-redundant-alt -->
|
|
|
6 |
export let generatedImage: string | undefined;
|
7 |
export let alt: string | undefined;
|
8 |
|
9 |
+
let loaded = src ? 0 : 1
|
10 |
</script>
|
11 |
|
12 |
<!-- svelte-ignore a11y-img-redundant-alt -->
|
src/routes/api/scrap-models/[slug]/+server.ts
CHANGED
@@ -73,6 +73,7 @@ export async function POST({ request, params }) {
|
|
73 |
)
|
74 |
}
|
75 |
}).catch((err) => {
|
|
|
76 |
return json({
|
77 |
message: err.message
|
78 |
}, { status: 500 })
|
|
|
73 |
)
|
74 |
}
|
75 |
}).catch((err) => {
|
76 |
+
console.log(err.message)
|
77 |
return json({
|
78 |
message: err.message
|
79 |
}, { status: 500 })
|