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