Fix initialization check in EditObjectForm to ensure proper state management

This commit is contained in:
Tom Butcher 2025-08-22 21:07:48 +01:00
parent bd0c443260
commit 871f260661

View File

@ -113,7 +113,7 @@ const EditObjectForm = forwardRef(
}, [])
useEffect(() => {
if (!initialized && id && token != null) {
if (initialized == false && id && token != null) {
setInitialized(true)
handleFetchObject()
}