Skip to content

Commit

Permalink
Merge pull request #1435 from danskernesdigitalebibliotek/DDFBRA-34-t…
Browse files Browse the repository at this point in the history
…idsskrifter-med-volumen-nr-melder-fejl-ved-reservering

Fix reserving periodicals
  • Loading branch information
spaceo authored Sep 24, 2024
2 parents fde3aa1 + ecf0c74 commit a5035b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/reservation/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ export const getFutureDateStringISO = (num: number) => {
return futureDate;
};

type Periodical = Pick<PeriodicalEdition, "volumeNumber" | "volumeYear">;
type Periodical = Pick<
PeriodicalEdition,
"volumeNumber" | "volumeYear" | "volume"
>;

const constructReservation = ({
manifestation: { pid },
Expand Down Expand Up @@ -116,6 +119,7 @@ export const constructReservationData = ({
...(periodical
? {
periodical: {
volume: periodical.volume,
volumeNumber: periodical.volumeNumber,
volumeYear: periodical.volumeYear
}
Expand Down

0 comments on commit a5035b1

Please sign in to comment.