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