Browse Source

do not build mapitem if not enought salient points

bach 1 year ago
parent
commit
a324ffc806
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/components/ConcernementMapItem.vue

+ 5 - 2
src/components/ConcernementMapItem.vue

@@ -78,8 +78,11 @@ export default {
     
     this.parsePoints()
     this.getSalientPoints()
-    if (this.canvasMap) {
-      this.initCanvasMap()
+
+    if (this.salientPoints.length > 3) { // do not build item if it doesn't get enougth salient points
+      if (this.canvasMap) {
+        this.initCanvasMap()
+      }  
     }
 
   },