diff options
author | Thiago Marcello <thiagocmarcello@gmail.com> | 2023-08-02 17:53:31 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-02 17:53:31 -0300 |
commit | a21eea835c9247ad401af842991b8dcf3a5417f3 (patch) | |
tree | 61829438fc0eea6b9c63bed120c9ab6ea0d78ab5 /modern | |
parent | 5f07c3e00f15e23b8acb07fd568857effa1d8be4 (diff) | |
download | trackermap-web-a21eea835c9247ad401af842991b8dcf3a5417f3.tar.gz trackermap-web-a21eea835c9247ad401af842991b8dcf3a5417f3.tar.bz2 trackermap-web-a21eea835c9247ad401af842991b8dcf3a5417f3.zip |
fix attributes by server live route length
Diffstat (limited to 'modern')
-rw-r--r-- | modern/src/store/session.js | 2 |
1 files changed, 1 insertions, 1 deletions
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') { |