mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
fixed route length isEmpty detection
This commit is contained in:
parent
74a49ae35d
commit
663890dca6
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue