chore: fetch to get in redux thunks files name
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import React, { useEffect } from "react";
|
||||
import { useDispatch, useSelector } from "react-redux";
|
||||
import { RootState, AppDispatch } from "@/redux/store";
|
||||
import { fetchAnalogInputsThunk } from "@/redux/thunks/fetchAnalogInputsThunk";
|
||||
import { getAnalogInputsThunk } from "@/redux/thunks/getAnalogInputsThunk";
|
||||
import { Icon } from "@iconify/react";
|
||||
import settingsIcon from "@iconify/icons-mdi/settings";
|
||||
import waveformIcon from "@iconify/icons-mdi/waveform";
|
||||
@@ -20,7 +20,7 @@ export default function AnalogInputsTable({
|
||||
const [activeId, setActiveId] = React.useState<number | null>(null);
|
||||
|
||||
useEffect(() => {
|
||||
dispatch(fetchAnalogInputsThunk());
|
||||
dispatch(getAnalogInputsThunk());
|
||||
}, [dispatch]);
|
||||
|
||||
const analogInputs = useSelector(
|
||||
|
||||
Reference in New Issue
Block a user