diff options
| author | Henry Jameson <me@hjkos.com> | 2019-01-17 23:08:44 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2019-01-17 23:57:24 +0300 |
| commit | 80a7035154ccd4ccf9f761d4117f286e352676e9 (patch) | |
| tree | 0c9a2ffeaa20848c598832de81832e921be8d9e8 /src/components/conversation/conversation.js | |
| parent | 8172eeb1e070c96fd086093088918a6e9abeeb8b (diff) | |
removing unnecessary conversions since it should already be converted in normalizer
Diffstat (limited to 'src/components/conversation/conversation.js')
| -rw-r--r-- | src/components/conversation/conversation.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/conversation/conversation.js b/src/components/conversation/conversation.js index 237de7e5..9bf5e136 100644 --- a/src/components/conversation/conversation.js +++ b/src/components/conversation/conversation.js @@ -33,7 +33,9 @@ const conversation = { replies () { let i = 1 return reduce(this.conversation, (result, {id, in_reply_to_status_id}) => { - const irid = String(in_reply_to_status_id) + /* eslint-disable camelcase */ + const irid = in_reply_to_status_id + /* eslint-enable camelcase */ if (irid) { result[irid] = result[irid] || [] result[irid].push({ @@ -70,7 +72,6 @@ const conversation = { } }, getReplies (id) { - id = String(id) return this.replies[id] || [] }, focused (id) { @@ -81,7 +82,7 @@ const conversation = { } }, setHighlight (id) { - this.highlight = String(id) + this.highlight = id } } } |
