mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-21 06:37:36 -04:00
Extra check for sync dropdown
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user