FIX: 404 error when editing an expanded reply (#12504)

This commit is contained in:
Penar Musaraj
2021-03-24 10:22:27 -04:00
committed by GitHub
parent 16073a22a1
commit ee17ca9dc6

View File

@@ -486,7 +486,7 @@ createWidget("post-contents", {
this.state.repliesBelow = posts.map((p) => {
let result = transformWithCallbacks(p);
result.shareUrl = `${topicUrl}/${p.post_number}`;
result.asPost = this.store.createRecord("post", p);
result.asPost = this.store.createRecord("post", result);
return result;
});
});
@@ -684,7 +684,7 @@ createWidget("post-article", {
this.state.repliesAbove = posts.map((p) => {
let result = transformWithCallbacks(p);
result.shareUrl = `${topicUrl}/${p.post_number}`;
result.asPost = this.store.createRecord("post", p);
result.asPost = this.store.createRecord("post", result);
return result;
});
});