From b76f9655bcd672d25d0472a9293e4015b4fd60ad Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Mon, 20 May 2024 09:40:32 +0300 Subject: [PATCH] ts --- front/src/components/Floorplan.vue | 1 - front/src/stores/floorplan.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/front/src/components/Floorplan.vue b/front/src/components/Floorplan.vue index 87108ae..3225c06 100644 --- a/front/src/components/Floorplan.vue +++ b/front/src/components/Floorplan.vue @@ -19,7 +19,6 @@ const startToEndPath = ref() const plan = useFloorplanStore() const paths = ref([]) -const pathFinderProcess = ref(false) const finder = new PF.DijkstraFinder(); const newDraw = () => { diff --git a/front/src/stores/floorplan.ts b/front/src/stores/floorplan.ts index abb41c6..b11e581 100644 --- a/front/src/stores/floorplan.ts +++ b/front/src/stores/floorplan.ts @@ -20,7 +20,7 @@ export const useFloorplanStore = defineStore('floorplan', { this.np_array = data.np_field this.prepared_array = [...chunks(data.np_field, this.chunkSize)].map(line => { const line_data = [] as any[][] - line.map((item: any) => [...chunks(item, this.chunkSize)]).map((item, j) => { + line.map((item: any) => [...chunks(item, this.chunkSize)]).map((item) => { item.map((one_line, k) => { if (!line_data[k]) line_data[k] = [] line_data[k].push(...one_line)