fix: Dashboard.tsx useEffect syntax error
This commit is contained in:
@@ -139,7 +139,8 @@ export default function Dashboard() {
|
|||||||
const [devices, setDevices] = useState<Device[]>([])
|
const [devices, setDevices] = useState<Device[]>([])
|
||||||
const [loading, setLoading] = useState(true)
|
const [loading, setLoading] = useState(true)
|
||||||
const { theme } = useDarkMode()
|
const { theme } = useDarkMode()
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
const loadData = async () => {
|
const loadData = async () => {
|
||||||
try {
|
try {
|
||||||
const [jobsData, devicesData] = await Promise.all([
|
const [jobsData, devicesData] = await Promise.all([
|
||||||
|
|||||||
Reference in New Issue
Block a user