mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-07-30 15:41:51 +00:00
Ensured new visits are prepended and not appended, ensuring they keep the proper order
This commit is contained in:
@@ -44,7 +44,7 @@ export default buildReducer<VisitsInfo, OrphanVisitsCombinedAction>({
|
||||
const { visits } = state;
|
||||
const newVisits = createdVisits.map(({ visit }) => visit);
|
||||
|
||||
return { ...state, visits: [ ...visits, ...newVisits ] };
|
||||
return { ...state, visits: [ ...newVisits, ...visits ] };
|
||||
},
|
||||
}, initialState);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user