대화방 검색 > 이전대화검색시 순환검색되지 않도록 수정.

This commit is contained in:
leejinho 2019-12-24 10:53:35 +09:00
parent 4ebe588e25
commit a9342ac745

View File

@ -328,16 +328,20 @@ export class Effects {
infoList.length === action.req.requestCount && infoList.length === action.req.requestCount &&
processing processing
) { ) {
this.store.dispatch( // // 재귀
infoForSearch({ // this.store.dispatch(
req: { // infoForSearch({
roomSeq: req.roomSeq, // req: {
baseSeq: infoList[0].seq, // roomSeq: req.roomSeq,
requestCount: req.requestCount // baseSeq: infoList[0].seq,
}, // requestCount: req.requestCount
searchText: action.searchText // },
}) // searchText: action.searchText
); // })
// );
// 재귀하지 않는다.
this.store.dispatch(infoForSearchEnd({}));
} else { } else {
if (infoList.length < action.req.requestCount) { if (infoList.length < action.req.requestCount) {
this.store.dispatch(infoForSearchEnd({})); this.store.dispatch(infoForSearchEnd({}));