fix data loading related to pagination in /friends page
This commit is contained in:
parent
5831e7d709
commit
8e3272c7d5
|
|
@ -151,7 +151,7 @@ function JKPeopleFilter() {
|
|||
};
|
||||
|
||||
const onSubmit = (data) => {
|
||||
//console.log("_DEBUG_ page.current", page.current)
|
||||
console.log("_DEBUG_ page.current", page.current)
|
||||
let genres = [];
|
||||
let joined_within_days = '';
|
||||
let active_within_days = '';
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ export const musicianSlice = createSlice({
|
|||
const records = new Set([...state.prefetched, ...action.payload.musicians]);
|
||||
const unique = [];
|
||||
records.map(x => unique.filter(p => p.id === x.id).length > 0 ? null : unique.push(x))
|
||||
state.people = unique
|
||||
state.prefetched = unique
|
||||
state.hasOffset = !!action.payload.offset
|
||||
state.offset = action.payload.offset
|
||||
state.status = 'succeeded'
|
||||
|
|
|
|||
Loading…
Reference in New Issue