Spaces:
Running
Running
flat is not a function fixed
Browse files
src/lib/components/text-generation/Preview.svelte
CHANGED
@@ -3,11 +3,8 @@
|
|
3 |
export let res: Record<string, any>;
|
4 |
|
5 |
|
6 |
-
$: progressions = res?.flat()
|
7 |
-
|
8 |
-
|
9 |
-
$: console.log(progressions, body)
|
10 |
-
</script>
|
11 |
|
12 |
<div class="text-white p-6 font-code text-xs !leading-loose grid grid-cols-1 gap-3 w-full max-w-lg">
|
13 |
"{body?.inputs}"
|
|
|
3 |
export let res: Record<string, any>;
|
4 |
|
5 |
|
6 |
+
$: progressions = (res ?? [[]])?.flat()
|
7 |
+
</script>
|
|
|
|
|
|
|
8 |
|
9 |
<div class="text-white p-6 font-code text-xs !leading-loose grid grid-cols-1 gap-3 w-full max-w-lg">
|
10 |
"{body?.inputs}"
|