Use .some instead of .find for phantomjs compatibility
This commit is contained in:
parent
f947972ded
commit
4f76ff0ecd
1 changed files with 1 additions and 9 deletions
|
@ -428,15 +428,7 @@
|
|||
},
|
||||
|
||||
fileTextTypePresent() {
|
||||
let found = false;
|
||||
|
||||
this.state.conflictsData.files.find((f) => {
|
||||
if (f.type === CONFLICT_TYPES.TEXT) {
|
||||
return found = true;
|
||||
}
|
||||
});
|
||||
|
||||
return found;
|
||||
return this.state.conflictsData.files.some(f => f.type === CONFLICT_TYPES.TEXT);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue