From d57e4dcdc966f4d07c6a7468d7464c4077cd3af8 Mon Sep 17 00:00:00 2001 From: Emel ALKIM Date: Thu, 16 Nov 2023 12:39:46 -0800 Subject: [PATCH] fix the control to decide whether to use the new input format --- src/Aim.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Aim.jsx b/src/Aim.jsx index fcca0f4..0ce25a9 100644 --- a/src/Aim.jsx +++ b/src/Aim.jsx @@ -8,7 +8,7 @@ class Aim { let aimData; const { image, study, answers, user } = data; // new aim creation (data includes image||study data and answers) - if (image || study || answers) { + if ((image || study) && answers) { if (aimType === enumAimType.imageAnnotation) { aimData = getAimImageData(image); }