Skip to content

Commit

Permalink
Add Todo: Fix infinite loop in MaterialDetailsModal
Browse files Browse the repository at this point in the history
While investigating https://reload.atlassian.net/browse/DDFBRA-236, I identified an infinite loop in `MaterialDetailsModal`. This issue appears when the modal is opened via "user/loans" and potentially all places it is used
  • Loading branch information
kasperbirch1 committed Dec 6, 2024
1 parent d01a598 commit ab74e3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/apps/loan-list/modal/material-details-modal.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Todo: Fix infinite loop in MaterialDetailsModal
import React, { FC, ReactNode } from "react";
import Modal from "../../../core/utils/modal";
import { useText } from "../../../core/utils/text";
Expand Down Expand Up @@ -33,6 +34,7 @@ const MaterialDetailsModal: FC<MaterialDetailsModalProps> = ({
children
}) => {
const t = useText();
// console.log("Rendering MaterialDetailsModal:");

if (!modalId) {
return null;
Expand Down

0 comments on commit ab74e3c

Please sign in to comment.