Skip to content

Commit

Permalink
Merge branch 'develop' into release/1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
martinyde committed Sep 14, 2023
2 parents cdcfcc5 + 0f4054d commit 1769804
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Nedenfor ses dato for release og beskrivelse af opgaver som er implementeret.

## In develop

* Fixed editing/deleting bookings errors in itkdev_booking.
* Disable access to webform error log
* Added retry action to error log
* Changed failed jobs view
Expand Down
6 changes: 3 additions & 3 deletions web/modules/custom/itkdev_booking/assets/dist/main.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions web/modules/custom/itkdev_booking/assets/src/user-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function UserPanel({ config }) {

setChangedBookingId(bookingId);

const booking = userBookings.find((el) => el.id === bookingId);
const booking = userBookings["hydra:member"].find((el) => el.id === bookingId);

if (booking) {
booking.start = start;
Expand All @@ -43,7 +43,8 @@ function UserPanel({ config }) {
const onBookingDeleted = (bookingId) => {
setDeleteBooking(null);

const newUserBookings = userBookings.filter((el) => el.id !== bookingId);
const newUserBookings = {...userBookings};
newUserBookings["hydra:member"] = newUserBookings["hydra:member"].filter((el) => el.id !== bookingId);

setUserBookings(newUserBookings);
};
Expand Down

0 comments on commit 1769804

Please sign in to comment.