removing unnecessary conversions since it should already be converted in normalizer
This commit is contained in:
parent
8172eeb1e0
commit
80a7035154
4 changed files with 7 additions and 9 deletions
|
@ -64,9 +64,6 @@ const visibleNotificationTypes = (rootState) => {
|
|||
}
|
||||
|
||||
const mergeOrAdd = (arr, obj, item) => {
|
||||
// For sequential IDs BE passes numbers as numbers, we want them as strings.
|
||||
item.id = String(item.id)
|
||||
|
||||
const oldItem = obj[item.id]
|
||||
|
||||
if (oldItem) {
|
||||
|
@ -164,7 +161,7 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
|
|||
}
|
||||
|
||||
const favoriteStatus = (favorite, counter) => {
|
||||
const status = find(allStatuses, { id: String(favorite.in_reply_to_status_id) })
|
||||
const status = find(allStatuses, { id: favorite.in_reply_to_status_id })
|
||||
if (status) {
|
||||
// This is our favorite, so the relevant bit.
|
||||
if (favorite.user.id === user.id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue