Skip to content

Commit

Permalink
fix(react-tinacms-github): Fix reversed error messages for 404 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zenflow committed Dec 18, 2020
1 parent af4ff48 commit 7e3ba86
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -90,7 +90,7 @@ export const getModalProps = async (
}

// Does the branch exist?
if (await githubClient.getBranch()) {
if (!(await githubClient.getBranch())) {
return {
title: 'Missing Branch ',
message: 'The branch that you were editing has been deleted. Press.',
Expand Down

0 comments on commit 7e3ba86

Please sign in to comment.