Skip to content

Commit

Permalink
Merge pull request #1160 from thiagocmarcello/patch-1
Browse files Browse the repository at this point in the history
fix attributes by server live route length
  • Loading branch information
tananaev authored Aug 2, 2023
2 parents 5f07c3e + a21eea8 commit f97f41c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modern/src/store/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit f97f41c

Please sign in to comment.