Commit 6e8e2e46 authored by Petter Goksøyr Åsen's avatar Petter Goksøyr Åsen
Browse files

patron-client: fix bug affecting realia with more than one items

parent adbf677a
......@@ -12,8 +12,8 @@ export function filterPickupLibrariesByItems (libraries, items) {
const res = {}
const itemBranches = []
items.forEach(i => { itemBranches.push(i.branchcode) })
if (itemBranches in libraries) {
res[itemBranches] = libraries[itemBranches]
}
itemBranches.forEach(branch => {
res[branch] = libraries[branch]
})
return res
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment