fix tests, removed one unused function, fix real problem that tests helped to
surface
This commit is contained in:
parent
48e811e6ed
commit
b18e27c6d4
5 changed files with 62 additions and 81 deletions
|
@ -100,10 +100,6 @@ export const statusType = (status) => {
|
|||
return 'unknown'
|
||||
}
|
||||
|
||||
export const findMaxId = (...args) => {
|
||||
return (maxBy(flatten(args), 'id') || {}).id
|
||||
}
|
||||
|
||||
const mergeOrAdd = (arr, obj, item) => {
|
||||
// For sequential IDs BE passes numbers as numbers, we want them as strings.
|
||||
item.id = String(item.id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue