Extra check for sync dropdown

This commit is contained in:
Gregory Schier
2019-06-07 11:25:21 -04:00
parent 8ce49bfb49
commit cdca249ab8

View File

@@ -141,9 +141,11 @@ class SyncDropdown extends React.PureComponent<Props, State> {
// 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();