diff --git a/components/mainComponent/MapComponent.js b/components/mainComponent/MapComponent.js index af92f5cfb..f2aa7a233 100644 --- a/components/mainComponent/MapComponent.js +++ b/components/mainComponent/MapComponent.js @@ -44,7 +44,7 @@ import { fetchGisStationsStaticDistrictFromWebService } from "../../redux/slices import { selectGisStationsStaticDistrict } from "../../redux/slices/webService/gisStationsStaticDistrictSlice"; import { fetchGisStationsStatusDistrictFromWebService } from "../../redux/slices/webService/gisStationsStatusDistrictSlice"; import { fetchGisStationsMeasurementsFromWebService } from "../../redux/slices/webService/gisStationsMeasurementsSlice"; -import { useInitGisSystemStatic } from "./hooks/webServices/useInitGisSystemStatic"; +import { fetchGisSystemStaticFromWebService } from "../../redux/slices/webService/gisSystemStaticSlice"; import { selectGisSystemStatic, setGisSystemStatic } from "../../redux/slices/webService/gisSystemStaticSlice"; import ShowAddStationPopup from "../AddPOIModal.js"; import { fetchGisStationsStatic } from "../../redux/slices/webService/gisStationsStaticSlice"; @@ -884,7 +884,10 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => { useEffect(() => { dispatch(fetchGisStationsMeasurementsFromWebService()); }, [dispatch]); - useInitGisSystemStatic(); + useEffect(() => { + dispatch(fetchGisSystemStaticFromWebService()); + }, [dispatch]); + const gisStationsStatic = useSelector((state) => state.gisStationsStatic.data); useEffect(() => { diff --git a/components/mainComponent/hooks/webServices/useInitGisSystemStatic.js b/components/mainComponent/hooks/webServices/useInitGisSystemStatic.js deleted file mode 100644 index b7a58a3e4..000000000 --- a/components/mainComponent/hooks/webServices/useInitGisSystemStatic.js +++ /dev/null @@ -1,12 +0,0 @@ -// /components/mainComponent/hooks/useInitGisStationsMeasurements.js -import { useEffect } from "react"; -import { useDispatch } from "react-redux"; -import { fetchGisSystemStaticFromWebService } from "../../../../redux/slices/webService/gisSystemStaticSlice"; - -export const useInitGisSystemStatic = () => { - const dispatch = useDispatch(); - - useEffect(() => { - dispatch(fetchGisSystemStaticFromWebService()); - }, [dispatch]); -}; diff --git a/config/appVersion.js b/config/appVersion.js index 25788f5f0..5a318184b 100644 --- a/config/appVersion.js +++ b/config/appVersion.js @@ -1,2 +1,2 @@ // /config/appVersion -export const APP_VERSION = "1.1.112"; +export const APP_VERSION = "1.1.113";