mirror of https://github.com/waku-org/js-waku.git
fix: stop store pagination if `response` field is missing
This commit is contained in:
parent
cfece62e2a
commit
5ddca918ca
|
@ -217,6 +217,7 @@ export class WakuStore {
|
|||
|
||||
if (!reply.response) {
|
||||
dbg("No message returned from store: `response` field missing");
|
||||
return messages;
|
||||
}
|
||||
|
||||
const response = reply.response as protoV2Beta4.HistoryResponse;
|
||||
|
|
Loading…
Reference in New Issue