in src/pr/CircleCICard.js [30:49]
async componentDidUpdate(prevProps, prevState) {
if (this.hasError()) {
return;
}
if (!this.state.data) {
return;
}
for (const step of this.state.data.steps) {
if (!step.log.shown || step.log.text !== undefined) {
continue;
}
fetch(step.actions[0].output_url)
.then((log) => log.text())
.then((log) => {
step.log.text = log.replaceAll("\\n", "\n").replaceAll("\\r", "");
this.setState(this.state);
});
}
}