From 6af57661228395f900deaf08cd3bf8f33c8c1875 Mon Sep 17 00:00:00 2001 From: Johnathan Date: Wed, 6 Dec 2023 14:00:55 -0700 Subject: [PATCH] Bugfix/631 contacts do not import (#633) * Check records exist before iterating * Increment version to 1.1.1 --- app/pods/import/route.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/pods/import/route.js b/app/pods/import/route.js index 0e1dc4c24..fd5a4eb94 100644 --- a/app/pods/import/route.js +++ b/app/pods/import/route.js @@ -13,7 +13,7 @@ import uuidV4 from "uuid/v4"; function fixLiabilityTypo(files) { // Iterate through the records array - files.records.forEach((record) => { + files.records?.forEach((record) => { // Access the JSON string const jsonString = record.get('attributes.json'); // Parse the JSON string into a JavaScript object diff --git a/package.json b/package.json index ead0c30d2..d4ca502c9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mdeditor", - "version": "1.1.0", + "version": "1.1.1", "description": "A web application for authoring and editing metadata.", "repository": { "type": "git",