diff --git a/src/main.ts b/src/main.ts index a3a440d..f01cb8e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -26,6 +26,9 @@ export function newContainer() { } export function prevContainer() { + if (containers.length === 1) { + return; + } containerIndex--; container = containers[containerIndex]; }