Skip to content

Commit 3907132

Browse files
authored
Merge pull request #1340 from Arnei/hotfix-modal-data-not-loading
Fix modal data not being loaded
2 parents 8ec8ca1 + 6f3b5dd commit 3907132

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)