diff --git a/gradle/changelog/clone_modal_fetch.yaml b/gradle/changelog/clone_modal_fetch.yaml new file mode 100644 index 0000000000..c2465dcfdf --- /dev/null +++ b/gradle/changelog/clone_modal_fetch.yaml @@ -0,0 +1,2 @@ +- type: Fixed + description: Fetch clone modal data on first opening ([#1784](https://github.com/scm-manager/scm-manager/pull/1784)) diff --git a/scm-ui/ui-components/src/repos/RepositoryEntry.tsx b/scm-ui/ui-components/src/repos/RepositoryEntry.tsx index ec81e03c77..47ca59f52a 100644 --- a/scm-ui/ui-components/src/repos/RepositoryEntry.tsx +++ b/scm-ui/ui-components/src/repos/RepositoryEntry.tsx @@ -81,21 +81,23 @@ const RepositoryEntry: FC = ({ repository, baseDate }) => { const createContentRight = () => ( - - } - closeFunction={() => setOpenCloneModal(false)} - /> + {openCloneModal && ( + + } + closeFunction={() => setOpenCloneModal(false)} + /> + )}