We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e2c18a commit a04af0dCopy full SHA for a04af0d
components/changes_page/actions/get-pinned-post/get-pinned-post.mjs
@@ -18,7 +18,7 @@ export default {
18
$.export("$summary", "Successfully retrieved pinned post");
19
return post;
20
} catch (error) {
21
- if (error.response.status === 404) {
+ if (error.response?.status === 404) {
22
throw new ConfigurationError("No pinned post found");
23
}
24
throw error;
components/changes_page/changes_page.app.mjs
@@ -72,6 +72,9 @@ export default {
72
const response = await fn({
73
params,
74
});
75
+ if (!response || response.length === 0) {
76
+ break;
77
+ }
78
for (const item of response) {
79
yield item;
80
if (max && ++count >= max) {
0 commit comments