Operator project fix
This commit is contained in:
@@ -101,7 +101,12 @@ export default function ConsumptionPage() {
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
if (isOperator && !selectedProject) {
|
||||
return;
|
||||
}
|
||||
|
||||
loadData(1);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [selectedProject, startDate, endDate]);
|
||||
|
||||
const filteredReadings = useMemo(() => {
|
||||
|
||||
Reference in New Issue
Block a user