Skip to content

Commit 6f3b5dd

Browse files
committed
Fix modal data not being loaded
One of the recent eslint PRs removed this by accident, causing modals to not load their data (i.e. the event details not loading metadata). This fixes that.
1 parent 9ea77b3 commit 6f3b5dd

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/components/NavBar.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,16 @@ const NavBar = ({
5252
const newResourceModalRef = useRef<ModalHandle>(null);
5353

5454
const showNewResourceModal = async () => {
55+
if (create && create.onShowModal) {
56+
await create.onShowModal();
57+
}
5558
newResourceModalRef.current?.open()
5659
};
5760

5861
const hideNewResourceModal = () => {
62+
if (create && create.onHideModal) {
63+
create.onHideModal();
64+
}
5965
newResourceModalRef.current?.close?.()
6066
};
6167

0 commit comments

Comments
 (0)