Merge pull request #17263 from desktop/fix-add-repo-new-repo-loop

Adapt "add local repo" and "create new repo" to new stacked popup behavior
This commit is contained in:
Sergio Padrino 2023-08-22 15:34:29 +02:00 committed by GitHub
commit 9894e9b985
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -313,6 +313,8 @@ export class AddExistingRepository extends React.Component<
}
private onCreateRepositoryClicked = () => {
this.props.onDismissed()
const resolvedPath = this.resolvedPath(this.state.path)
return this.props.dispatcher.showPopup({

View file

@ -581,6 +581,8 @@ export class CreateRepository extends React.Component<
}
private onAddRepositoryClicked = () => {
this.props.onDismissed()
const { path, name } = this.state
// Shouldn't be able to even get here if path is null.