Refactor ObjectForm condition check for clarity
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good

- Updated the condition in ObjectForm to explicitly check for boolean true when verifying connection status, improving code readability and intent.
This commit is contained in:
Tom Butcher 2026-07-26 01:01:49 +01:00
parent dcbf308988
commit 0db2dff9fe

View File

@ -494,7 +494,7 @@ const ObjectForm = forwardRef(
}, [id, initialized, handleFetchObject, token, connected])
useEffect(() => {
if (id && connected) {
if (id && connected == true) {
currentSetObjectActivityRef.current(
id,
type,