This commit is contained in:
Muhammad Izza Alfiansyah 2024-07-08 18:31:47 +07:00
parent 6dda8c69c1
commit 6ba0ae72e7
1 changed files with 6 additions and 6 deletions

View File

@ -142,11 +142,11 @@ export default function (props: JSX.HTMLAttributes<HTMLDivElement>) {
// .order("created_time", { ascending: false }) // .order("created_time", { ascending: false })
// .limit(1); // .limit(1);
// if (lastData1![0] == lastData2![0]) { if (lastData1![0] == lastData2![0]) {
// alert("Device offline!"); alert("Device offline!");
// } else if (lastData1![0].created_time == lastData2![0].created_time) { } else if (lastData1![0].created_time == lastData2![0].created_time) {
// alert("Device offline!"); alert("Device offline!");
// } }
await checkStatusDevice(); await checkStatusDevice();
} }
@ -160,7 +160,7 @@ export default function (props: JSX.HTMLAttributes<HTMLDivElement>) {
if (!item.running) { if (!item.running) {
if (location.pathname != "/") { if (location.pathname != "/") {
// navigate("/"); navigate("/");
} }
} else { } else {
setCanNavigate(true); setCanNavigate(true);