From e8bbeafffb072b9f431fed30bf80cf7e8d183d96 Mon Sep 17 00:00:00 2001 From: kenziebourn Date: Wed, 5 Jun 2024 14:49:29 -0700 Subject: [PATCH] check for empty array of values --- js/import-export.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/import-export.js b/js/import-export.js index 0dc462e6..6f3d608e 100644 --- a/js/import-export.js +++ b/js/import-export.js @@ -84,7 +84,7 @@ function validEntry(entry) let validatedTime = true; if (entry.type === 'flexible') { - hasExpectedProperties = entry.hasOwnProperty('values') && Array.isArray(entry.values); + hasExpectedProperties = entry.hasOwnProperty('values') && Array.isArray(entry.values) && entry.values.length > 0; if (hasExpectedProperties) { for (const value of entry.values)