diff --git a/src/components/Dashboard/common/ObjectSelect.jsx b/src/components/Dashboard/common/ObjectSelect.jsx index 59b3797..67b81b8 100644 --- a/src/components/Dashboard/common/ObjectSelect.jsx +++ b/src/components/Dashboard/common/ObjectSelect.jsx @@ -55,7 +55,7 @@ const ObjectSelect = ({ return null } }, - [type, fetchObjectsByProperty, properties, filter] + [type, fetchObjectsByProperty, properties, filter, masterFilter] ) // Convert the API response to AntD TreeSelect treeData @@ -226,7 +226,14 @@ const ObjectSelect = ({ handleFetchObjectsProperties() setInitialized(true) } - }, [value, filter, properties, handleFetchObjectsProperties, initialized]) + }, [ + value, + filter, + properties, + handleFetchObjectsProperties, + initialized, + token + ]) // --- Error UI --- if (error) {