Skip to content

Commit

Permalink
review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Mar 2, 2021
1 parent ef47a78 commit 812b511
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class ImportCompleteView extends Component<Props, {}> {
},
});

const failuredFeaturesMsg = this.props.importResp.failures.length
const failedFeaturesMsg = this.props.importResp.failures.length
? i18n.translate('xpack.fileUpload.failedFeaturesMsg', {
defaultMessage: 'Unable to index {numFailures} features.',
values: {
Expand All @@ -112,7 +112,7 @@ export class ImportCompleteView extends Component<Props, {}> {
})
: '';

return `${successMsg} ${failuredFeaturesMsg}`;
return `${successMsg} ${failedFeaturesMsg}`;
}

render() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class GeoJsonImporter extends Importer {
const failures: ImportFailure[] = [...this._invalidFeatures];
let error;

while (this._features.length > 0 || (this._hasNext && this._isActive)) {
while ((this._features.length > 0 || this._hasNext) && this._isActive) {
await this._readUntil(undefined, IMPORT_CHUNK_SIZE_MB);
if (!this._isActive) {
return {
Expand Down

0 comments on commit 812b511

Please sign in to comment.