Add basic user profiles.
This commit is contained in:
parent
83a376a254
commit
fcccb9df68
5 changed files with 38 additions and 2 deletions
|
@ -4,6 +4,7 @@ import { map, each, find, merge } from 'lodash'
|
|||
|
||||
// TODO: Unify with mergeOrAdd in statuses.js
|
||||
export const mergeOrAdd = (arr, item) => {
|
||||
if (!item) { return false }
|
||||
const oldItem = find(arr, {id: item.id})
|
||||
if (oldItem) {
|
||||
// We already have this, so only merge the new info.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue