@omniumretail/component-library 1.1.81 → 1.1.82

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/component-library",
3
- "version": "1.1.81",
3
+ "version": "1.1.82",
4
4
  "private": false,
5
5
  "main": "dist/bundle.js",
6
6
  "typings": "./dist/types/index",
@@ -28,7 +28,7 @@ export const SingleQuestion = ({
28
28
  const formContext = useContext(FieldContext);
29
29
 
30
30
  const filteredIds = responseTypeOptions
31
- .filter((item: { IsMultipleChoise: any; }) => item.IsMultipleChoise)
31
+ ?.filter((item: { IsMultipleChoise: any; }) => item.IsMultipleChoise)
32
32
  .map((item: { Id: any; }) => item.Id);
33
33
 
34
34
  const answerTypeOptions = responseTypeOptions?.map((answerType: any) => ({
@@ -159,7 +159,7 @@ export const SingleQuestion = ({
159
159
  <span>{t('components.category.emphasisAnswer')}</span>
160
160
  </div>
161
161
 
162
- {filteredIds.includes(formContext.getFieldsValue().questions?.[name]?.responseType) &&
162
+ {filteredIds?.includes(formContext.getFieldsValue().questions?.[name]?.responseType) &&
163
163
  < div className={styles.checkboxContainer}>
164
164
  <Form.Item
165
165
  {...restField}