@omniumretail/component-library 1.1.78 → 1.1.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -186,13 +186,11 @@ export const CategoryResponse = React.forwardRef((props: CategoryResponse, ref)
|
|
|
186
186
|
...question,
|
|
187
187
|
Answer: !props.addButtons
|
|
188
188
|
? values.Questions[index].Answer
|
|
189
|
-
:
|
|
190
|
-
?
|
|
191
|
-
:
|
|
192
|
-
? values.Questions[index].Answer
|
|
193
|
-
:
|
|
194
|
-
? [values.Questions[index].Answer]
|
|
195
|
-
: [],
|
|
189
|
+
: Array.isArray(values.Questions[index].Answer)
|
|
190
|
+
? values.Questions[index].Answer
|
|
191
|
+
: values.Questions[index].Answer
|
|
192
|
+
? [values.Questions[index].Answer]
|
|
193
|
+
: [],
|
|
196
194
|
Note: values.Questions[index].Note,
|
|
197
195
|
IsMultipleChoise: values.Questions[index].IsMultipleChoise,
|
|
198
196
|
Files: fileLists[`${selectedCategory.Data.CategoryId}_${index}`] || [], // Include files in the form data
|