jbilcke-hf HF staff commited on
Commit
3220193
1 Parent(s): ee1b7bf
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.at(-1)?.panel || existingPanels.length || 0
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 {