From cdca249ab896bf66759c853a50cb00fb576f7d78 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Fri, 7 Jun 2019 11:25:21 -0400 Subject: [PATCH] Extra check for sync dropdown --- .../app/ui/components/dropdowns/sync-dropdown.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/insomnia-app/app/ui/components/dropdowns/sync-dropdown.js b/packages/insomnia-app/app/ui/components/dropdowns/sync-dropdown.js index 8cdc277e1e..85f45dd4d3 100644 --- a/packages/insomnia-app/app/ui/components/dropdowns/sync-dropdown.js +++ b/packages/insomnia-app/app/ui/components/dropdowns/sync-dropdown.js @@ -141,9 +141,11 @@ class SyncDropdown extends React.PureComponent { // Update if new sync items if (syncItems !== prevProps.syncItems) { - vcs.status(syncItems, {}).then(status => { - this.setState({ status }); - }); + if (vcs.hasProject()) { + vcs.status(syncItems, {}).then(status => { + this.setState({ status }); + }); + } if (this.refreshOnNextSyncItems) { this.refreshMainAttributes();