From 5d8528fdb5c28e71ce6a1eb7b8b04ec93b9cf22e Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Thu, 20 Jul 2017 03:16:05 +0700 Subject: [PATCH] Replace deprecated commentId --- .../client/components/PermalinkButton.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/talk-plugin-permalink/client/components/PermalinkButton.js b/plugins/talk-plugin-permalink/client/components/PermalinkButton.js index cca8718b5..e8df91fd9 100644 --- a/plugins/talk-plugin-permalink/client/components/PermalinkButton.js +++ b/plugins/talk-plugin-permalink/client/components/PermalinkButton.js @@ -62,7 +62,7 @@ export default class PermalinkButton extends React.Component { render () { const {copySuccessful, copyFailure, popoverOpen} = this.state; - const {asset} = this.props; + const {asset, comment} = this.props; return (
@@ -83,7 +83,7 @@ export default class PermalinkButton extends React.Component { className={cn(styles.input, `${name}-copy-field`)} type='text' ref={(input) => this.permalinkInput = input} - defaultValue={`${asset.url}?commentId=${this.props.commentId}`} + defaultValue={`${asset.url}?commentId=${comment.id}`} />