Skip to content

Commit 067ae35

Browse files
author
Gareth Emslie
committed
move clear failures
1 parent 08da194 commit 067ae35

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/import-csv-discussions-action.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ class ImportCSVDiscussionsAction implements IContributedMenuSource {
6161
return fileUploadForm ? await fileUploadForm.getFileContents() : "";
6262
},
6363
okCallback: async (result: string) => {
64+
// clear any existing failures
65+
this._failures = [];
66+
6467
// do we have some data
6568
if (result) {
6669
this._logger.info(`Started Import.`);
@@ -248,8 +251,6 @@ class ImportCSVDiscussionsAction implements IContributedMenuSource {
248251

249252
async createComment(url: string, accessToken: string, record: any): Promise<boolean> {
250253
return new Promise(async (resolve, reject) => {
251-
this._failures =[];
252-
253254
let header: Array<string> = [];
254255
let cols: Array<string> = [];
255256

0 commit comments

Comments
 (0)