1
0
Fork 0

[org] fix: Set view to measurements when they are missing

Closes #209
This commit is contained in:
joostdecock 2025-04-04 14:20:57 +02:00
parent f30b67080b
commit b6ab7517c1

View file

@ -52,7 +52,7 @@ export const MeasurementsView = ({
* Which is a bit confusing. So in this case, set the view to measurements.
*/
useEffect(() => {
if (!config?.views || !config.views.includes(state.view)) update.view('measurements')
if (state.view !== 'measurements') update.view('measurements')
if (state._.missingMeasurements && state._.missingMeasurements.length > 0)
update.notify(
{