From 0db2dff9fea3ba667f7818313248cdb28d5f1f15 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sun, 26 Jul 2026 01:01:49 +0100 Subject: [PATCH] Refactor ObjectForm condition check for clarity - Updated the condition in ObjectForm to explicitly check for boolean true when verifying connection status, improving code readability and intent. --- src/components/Dashboard/common/ObjectForm.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Dashboard/common/ObjectForm.jsx b/src/components/Dashboard/common/ObjectForm.jsx index 15be0c2..940aad1 100644 --- a/src/components/Dashboard/common/ObjectForm.jsx +++ b/src/components/Dashboard/common/ObjectForm.jsx @@ -494,7 +494,7 @@ const ObjectForm = forwardRef( }, [id, initialized, handleFetchObject, token, connected]) useEffect(() => { - if (id && connected) { + if (id && connected == true) { currentSetObjectActivityRef.current( id, type,