Skip to content

Commit

Permalink
Remove existing staging site on clone failure
Browse files Browse the repository at this point in the history
  • Loading branch information
AleTorrisi committed Feb 27, 2025
1 parent 2b02d2f commit 494de9a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/staging/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,11 @@ const Staging = ({methods, constants, ...props}) => {
makeNotice( 'cloned', constants.text.cloneNoticeCompleteText, response.message );
} else {
setError( response.message );
setHasStaging( false );
}
} else {
setError( unknownErrorMsg ); // report unknown error
setHasStaging( false );
}
setIsThinking( false );
}
Expand Down

0 comments on commit 494de9a

Please sign in to comment.