diff options
| author | bobzel <zzzman@gmail.com> | 2020-08-10 10:45:50 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-08-10 10:45:50 -0400 |
| commit | 9351115c7ed7426f6e796a8d9310789c19ed86ef (patch) | |
| tree | 37e25f41b20672212dc1f012197eccc61335860a /src/client/views/collections/collectionFreeForm | |
| parent | 7173a28dae301a7733bcc9b8111016c737c0f5f4 (diff) | |
fixed warnings
Diffstat (limited to 'src/client/views/collections/collectionFreeForm')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/FormatShapePane.tsx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/client/views/collections/collectionFreeForm/FormatShapePane.tsx b/src/client/views/collections/collectionFreeForm/FormatShapePane.tsx index c53e4de0f..1ffa2fbed 100644 --- a/src/client/views/collections/collectionFreeForm/FormatShapePane.tsx +++ b/src/client/views/collections/collectionFreeForm/FormatShapePane.tsx @@ -173,11 +173,7 @@ export default class FormatShapePane extends AntimodeMenu { const newPoints: { X: number, Y: number }[] = []; var counter = 0; for (var k = 0; k < index; k++) { - for (var l = 0; l < control.length; l++) { - if (pts[k].X === control[l].X && pts[k].Y === control[l].Y) { - counter++; - } - } + control.forEach(pt => (pts[k].X === pt.X && pts[k].Y === pt.Y) && counter++); } //decide where to put the new coordinate const spNum = Math.floor(counter / 2) * 4 + 2; |
