Refactor ObjectForm condition check for clarity
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
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:
parent
dcbf308988
commit
0db2dff9fe
@ -494,7 +494,7 @@ const ObjectForm = forwardRef(
|
||||
}, [id, initialized, handleFetchObject, token, connected])
|
||||
|
||||
useEffect(() => {
|
||||
if (id && connected) {
|
||||
if (id && connected == true) {
|
||||
currentSetObjectActivityRef.current(
|
||||
id,
|
||||
type,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user