From 663890dca6aab0c9ae9deee9e8cd206e8f9c23ad Mon Sep 17 00:00:00 2001 From: muerwre Date: Tue, 5 Mar 2019 17:31:30 +0700 Subject: [PATCH] fixed route length isEmpty detection --- src/modules/Editor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/Editor.ts b/src/modules/Editor.ts index de0be4a..f5fc3ed 100644 --- a/src/modules/Editor.ts +++ b/src/modules/Editor.ts @@ -397,7 +397,7 @@ export class Editor { get isEmpty(): boolean { const { route, stickers } = this.dumpData(); - return (!route || route.length < 1) && (!stickers || stickers.length <= 0); + return (!route || route.length <= 1) && (!stickers || stickers.length <= 0); } get hasEmptyHistory(): boolean {