chore: rename service/thunk files to follow get/fetch naming convention
This commit is contained in:
@@ -17,7 +17,7 @@ import "chartjs-adapter-date-fns";
|
||||
import { de } from "date-fns/locale";
|
||||
import { useSelector, useDispatch } from "react-redux";
|
||||
import type { RootState, AppDispatch } from "../../../redux/store";
|
||||
import { fetchAnalogInputsHistoryThunk } from "../../../redux/thunks/fetchAnalogInputsHistoryThunk";
|
||||
import { getAnalogInputsHistoryThunk } from "@/redux/thunks/getAnalogInputsHistoryThunk";
|
||||
|
||||
ChartJS.register(
|
||||
LineElement,
|
||||
@@ -41,7 +41,7 @@ export default function AnalogInputsChart({
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
dispatch(fetchAnalogInputsHistoryThunk());
|
||||
dispatch(getAnalogInputsHistoryThunk());
|
||||
}, [dispatch]);
|
||||
|
||||
if (!selectedId) {
|
||||
|
||||
Reference in New Issue
Block a user