fix data loading related to pagination in /friends page

This commit is contained in:
Nuwan 2024-10-18 12:06:13 +05:30
parent 5831e7d709
commit 8e3272c7d5
2 changed files with 2 additions and 2 deletions

View File

@ -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 = '';

View File

@ -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'