fixed route length isEmpty detection

This commit is contained in:
muerwre 2019-03-05 17:31:30 +07:00
parent 74a49ae35d
commit 663890dca6

View file

@ -397,7 +397,7 @@ export class Editor {
get isEmpty(): boolean { get isEmpty(): boolean {
const { route, stickers } = this.dumpData(); 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 { get hasEmptyHistory(): boolean {