diff --git a/libs/remix-ui/git/src/lib/gitactions.ts b/libs/remix-ui/git/src/lib/gitactions.ts index c28c2571fa..2a82ed4be8 100644 --- a/libs/remix-ui/git/src/lib/gitactions.ts +++ b/libs/remix-ui/git/src/lib/gitactions.ts @@ -805,7 +805,8 @@ export const getBranchDifferences = async (branch: branch, remote: remote, state })) } catch (e) { // do nothing - dispatch(resetBranchDifferences()) + if(dispatch) + dispatch(resetBranchDifferences()) } }