Bug 30708: Fix conflict with 34055 and 34219

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2023-10-06 12:41:56 +02:00 committed by Tomas Cohen Arazi
parent 0f13508c1d
commit cf348a1a9b
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 3 additions and 2 deletions

View file

@ -168,7 +168,7 @@ export default {
const client = APIClient.item
let q = { "me.item_id": item_ids }
await client.items
.getAll(q, { headers: { "x-koha-embed": "biblio" } })
.getAll(q, {}, { headers: { "x-koha-embed": "biblio" } })
.then(
items => {
this.items = items

View file

@ -9,11 +9,12 @@ export class ItemAPIClient extends HttpClient {
get items() {
return {
getAll: (query, params) =>
getAll: (query, params, headers) =>
this.getAll({
endpoint: "items",
query,
params,
headers,
}),
};
}