From a21eea835c9247ad401af842991b8dcf3a5417f3 Mon Sep 17 00:00:00 2001 From: Thiago Marcello Date: Wed, 2 Aug 2023 17:53:31 -0300 Subject: fix attributes by server live route length --- modern/src/store/session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modern/src') diff --git a/modern/src/store/session.js b/modern/src/store/session.js index 1d8b2a22..a95cfec8 100644 --- a/modern/src/store/session.js +++ b/modern/src/store/session.js @@ -21,7 +21,7 @@ const { reducer, actions } = createSlice({ }, updatePositions(state, action) { const liveRoutes = state.user.attributes.mapLiveRoutes || state.server.attributes.mapLiveRoutes || 'none'; - const liveRoutesLimit = state.user.attributes['web.liveRouteLength'] || state.user.attributes['web.liveRouteLength'] || 10; + const liveRoutesLimit = state.user.attributes['web.liveRouteLength'] || state.server.attributes['web.liveRouteLength'] || 10; action.payload.forEach((position) => { state.positions[position.deviceId] = position; if (liveRoutes !== 'none') { -- cgit v1.2.3