Resolve various warnings during export

This commit is contained in:
sabaimran
2024-08-03 17:33:04 +05:30
parent 5a75f2c00f
commit 87e97e40f4
12 changed files with 56 additions and 48 deletions

View File

@@ -260,7 +260,7 @@ function AutomationsCard(props: AutomationsCardProps) {
const dayOfMonth = getDayOfMonthFromCron(automationData.crontime);
setIntervalString(`Monthly on the ${dayOfMonth}`);
}
}, [updatedAutomationData, props.automation]);
}, [updatedAutomationData, automation]);
useEffect(() => {
@@ -275,7 +275,7 @@ function AutomationsCard(props: AutomationsCardProps) {
})
setToastMessage('');
}
}, [toastMessage]);
}, [toastMessage, updatedAutomationData, automation, toast]);
if (isDeleted) {
return null;
@@ -955,7 +955,7 @@ export default function Automations() {
setAllNewAutomations([...allNewAutomations, newAutomationData]);
setNewAutomationData(null);
}
}, [newAutomationData]);
}, [newAutomationData, allNewAutomations]);
useEffect(() => {