From e225498af943a57469bd358706e0b9b5ffcf5a22 Mon Sep 17 00:00:00 2001 From: RekHoto Date: Mon, 18 Dec 2023 17:23:19 +0400 Subject: [PATCH] layers fix --- src/Map/Layers/Layers.jsx | 6 +++--- src/Map/Layers/Points.jsx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Map/Layers/Layers.jsx b/src/Map/Layers/Layers.jsx index a30bfa5..e3cae51 100644 --- a/src/Map/Layers/Layers.jsx +++ b/src/Map/Layers/Layers.jsx @@ -9,7 +9,7 @@ import {transliterate} from "../../utils.js"; import {useUpdateLayerCounter} from "../../stores/useUpdateLayerCounter.js"; export const Layers = ({ postGroups, otherGroups }) => { - const { updatePVZLayer } = useUpdateLayerCounter(); + const { updateCounter, updatePVZLayer } = useUpdateLayerCounter(); return ( <> @@ -45,7 +45,7 @@ export const Layers = ({ postGroups, otherGroups }) => { @@ -62,7 +62,7 @@ export const Layers = ({ postGroups, otherGroups }) => { diff --git a/src/Map/Layers/Points.jsx b/src/Map/Layers/Points.jsx index 5d8847b..7d210e5 100644 --- a/src/Map/Layers/Points.jsx +++ b/src/Map/Layers/Points.jsx @@ -9,7 +9,7 @@ import { CancelledPoints } from "./CancelledPoints"; import { useEffect } from "react"; export const Points = () => { - const { updateCounter, toggleUpdateCounter } = useUpdateLayerCounter(); + const { updateCounter, toggleUpdateCounter, updatePVZLayer } = useUpdateLayerCounter(); const layer = useSourceLayerName(); useEffect(() => { toggleUpdateCounter(); @@ -20,7 +20,7 @@ export const Points = () => {