diff --git a/src/modules/Editor.ts b/src/modules/Editor.ts index ccde86c..de0be4a 100644 --- a/src/modules/Editor.ts +++ b/src/modules/Editor.ts @@ -200,8 +200,6 @@ export class Editor { }; triggerOnChange = (): void => { - console.log('trigger on change', this.isEmpty, this.getIsEmpty()); - if (this.isEmpty !== this.getIsEmpty()) this.setIsEmpty(this.isEmpty); if (this.getEditing() && !this.getChanged()) this.setChanged(true); }; diff --git a/src/modules/Poly.ts b/src/modules/Poly.ts index 523f6e0..8843c09 100644 --- a/src/modules/Poly.ts +++ b/src/modules/Poly.ts @@ -55,7 +55,8 @@ export class Poly { onVertexShow = (): void => this.editor.setMarkersShown(true); updateMarks = event => { - this.editor.setChanged(true); + // this.editor.setChanged(true); + this.editor.triggerOnChange(); const { latlngs } = event; this.arrows.setLatLngs(latlngs);