FIX: Typo in summary URL (#23298)
This commit is contained in:
parent
e20de81de3
commit
cf71f8358e
|
@ -167,18 +167,14 @@ export default class SummaryBox extends Component {
|
||||||
this.loadingSummary = true;
|
this.loadingSummary = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
let fetchURL = `/t/${this.args.postAttrs.topicId}/strategy-summary`;
|
let fetchURL = `/t/${this.args.postAttrs.topicId}/strategy-summary?`;
|
||||||
|
|
||||||
if (this.currentUser) {
|
if (this.currentUser) {
|
||||||
fetchURL += `stream=true`;
|
fetchURL += `stream=true`;
|
||||||
}
|
|
||||||
|
|
||||||
if (this.canRegenerate) {
|
if (this.canRegenerate) {
|
||||||
if (this.currentUser) {
|
fetchURL += "&skip_age_check=true";
|
||||||
fetchURL += "&";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fetchURL += "skip_age_check=true";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ajax(fetchURL)
|
ajax(fetchURL)
|
||||||
|
|
Loading…
Reference in New Issue