Commit
•
3220193
1
Parent(s):
ee1b7bf
fix
Browse files
src/app/queries/getStoryContinuation.ts
CHANGED
@@ -20,7 +20,7 @@ export const getStoryContinuation = async ({
|
|
20 |
}): Promise<GeneratedPanel[]> => {
|
21 |
|
22 |
let panels: GeneratedPanel[] = []
|
23 |
-
const startAt: number = existingPanels.
|
24 |
const endAt: number = startAt + nbPanelsToGenerate
|
25 |
|
26 |
try {
|
|
|
20 |
}): Promise<GeneratedPanel[]> => {
|
21 |
|
22 |
let panels: GeneratedPanel[] = []
|
23 |
+
const startAt: number = (existingPanels.length + 1) || 0
|
24 |
const endAt: number = startAt + nbPanelsToGenerate
|
25 |
|
26 |
try {
|