mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
fix autoupdate in dialog
This commit is contained in:
@@ -54,7 +54,7 @@ const CustomEntities = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const timer = setInterval(async () => {
|
const timer = setInterval(async () => {
|
||||||
if (dialogOpen) {
|
if (dialogOpen || numChanges > 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
await fetchEntities();
|
await fetchEntities();
|
||||||
|
|||||||
Reference in New Issue
Block a user