FIX: call `getURL` method explicitly to prevent `this` context override.

This commit is contained in:
Vinoth Kannan 2020-05-24 21:58:03 +05:30
parent faeb5793ba
commit 60a3110113
1 changed files with 3 additions and 1 deletions

View File

@ -3,5 +3,7 @@ import Component from "@ember/component";
export default Component.extend({
@discourseComputed("post.url")
postUrl: Discourse.getURL
postUrl(url) {
return Discourse.getURL(url);
}
});