added delay to save

This commit is contained in:
ari committed 2022-07-29 21:42:50 -04:00
1 parent 957b6a66fe
commit 067f5fa642
4 files changed
+44 -23

No files matched your search

@@ -1,6 +1,6 @@
import "./index.css";
import { FC, useState } from "react";
import { FC, useEffect, useState } from "react";
import LinearProgress from "@mui/material/LinearProgress";
import Skeleton from "@mui/material/Skeleton";
@@ -28,6 +28,11 @@ export const AutomationManager: FC<AutomationManagerProps> = ({
const snackbr = useSnackbar();
const [isSaving, setIsSaving] = useState(false);
useEffect(() => {
refreshAutomations();
// eslint-disable-next-line
}, []);
// handle bad states
if (!haEntities.ready && haEntities.error) {
return (