diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2023-08-02 14:10:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-02 14:10:26 -0700 |
commit | f97f41ca860f262ce51fce481b1d4817e9ae9bfb (patch) | |
tree | 61829438fc0eea6b9c63bed120c9ab6ea0d78ab5 | |
parent | 5f07c3e00f15e23b8acb07fd568857effa1d8be4 (diff) | |
parent | a21eea835c9247ad401af842991b8dcf3a5417f3 (diff) | |
download | trackermap-web-f97f41ca860f262ce51fce481b1d4817e9ae9bfb.tar.gz trackermap-web-f97f41ca860f262ce51fce481b1d4817e9ae9bfb.tar.bz2 trackermap-web-f97f41ca860f262ce51fce481b1d4817e9ae9bfb.zip |
Merge pull request #1160 from thiagocmarcello/patch-1
fix attributes by server live route length
-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') { |