Skip to content

Commit a04af0d

Browse files
committed
updates
1 parent 0e2c18a commit a04af0d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

components/changes_page/actions/get-pinned-post/get-pinned-post.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default {
1818
$.export("$summary", "Successfully retrieved pinned post");
1919
return post;
2020
} catch (error) {
21-
if (error.response.status === 404) {
21+
if (error.response?.status === 404) {
2222
throw new ConfigurationError("No pinned post found");
2323
}
2424
throw error;

components/changes_page/changes_page.app.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ export default {
7272
const response = await fn({
7373
params,
7474
});
75+
if (!response || response.length === 0) {
76+
break;
77+
}
7578
for (const item of response) {
7679
yield item;
7780
if (max && ++count >= max) {

0 commit comments

Comments
 (0)