Filter on ID for users & orgs on Remove

pull/10616/head
Jared Scheib 2017-12-01 17:00:41 -08:00
parent 899c72cf4f
commit fe20b74e43
1 changed files with 2 additions and 3 deletions

View File

@ -48,8 +48,7 @@ const adminChronograf = (state = initialState, action) => {
// provider, & scheme, except for a created users that is a duplicate
// of an existing user, in which case a temp uuid is used to match
users: state.users.filter(
u =>
user._tempID ? u._tempID !== user._tempID : !isSameUser(u, user)
u => (user._tempID ? u._tempID !== user._tempID : u.id !== user.id)
),
}
}
@ -88,7 +87,7 @@ const adminChronograf = (state = initialState, action) => {
o =>
organization._tempID
? o._tempID !== organization._tempID
: o.name !== organization.name
: o.id !== organization.id
),
}
}