Skip to content

Commit

Permalink
Use reservationId() function for reservation list keys
Browse files Browse the repository at this point in the history
This ensures consistency.
  • Loading branch information
kasperg committed Nov 15, 2023
1 parent 05d4732 commit 7dda49e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/GroupModal/GroupModalReservationsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { isEqual } from "lodash";
import SelectableMaterial from "../../apps/loan-list/materials/selectable-material/selectable-material";
import { useText } from "../../core/utils/text";
import usePager from "../result-pager/use-pager";
import { ReservationType } from "../../core/utils/types/reservation-type";
import {
reservationId,
ReservationType
} from "../../core/utils/types/reservation-type";
import StatusBadge from "../../apps/loan-list/materials/utils/status-badge";
import { ListType } from "../../core/utils/types/list-type";

Expand Down Expand Up @@ -92,7 +95,7 @@ const GroupModalReservationsList: FC<GroupModalReservationsListProps> = ({
)
}
openDetailsModal={openDetailsModal}
key={faust || identifier}
key={reservationId(material)}
selected={selected}
onMaterialChecked={onMaterialChecked}
disabled={false}
Expand Down

0 comments on commit 7dda49e

Please sign in to comment.