check undefined
This commit is contained in:
parent
2a49bb53b2
commit
5352c7b828
@ -149,6 +149,9 @@ export const listFromRemote = async (
|
|||||||
if (rsp.$metadata.httpStatusCode !== 200) {
|
if (rsp.$metadata.httpStatusCode !== 200) {
|
||||||
throw Error("some thing bad while listing remote!");
|
throw Error("some thing bad while listing remote!");
|
||||||
}
|
}
|
||||||
|
if (rsp.Contents === undefined) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
contents.push(...rsp.Contents);
|
contents.push(...rsp.Contents);
|
||||||
|
|
||||||
isTruncated = rsp.IsTruncated;
|
isTruncated = rsp.IsTruncated;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user