@omniumretail/component-library 1.1.86 → 1.1.88
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
|
@@ -120,6 +120,7 @@ export const CategoryResponse = React.forwardRef((props: CategoryResponse, ref)
|
|
|
120
120
|
IsYesOrNo: IsYesOrNo
|
|
121
121
|
};
|
|
122
122
|
|
|
123
|
+
console.log(initial, "initial");
|
|
123
124
|
setInitialValues(initial);
|
|
124
125
|
form.setFieldsValue(initial);
|
|
125
126
|
};
|
|
@@ -197,6 +198,10 @@ export const CategoryResponse = React.forwardRef((props: CategoryResponse, ref)
|
|
|
197
198
|
|
|
198
199
|
const updatedLocalData = { ...localData, CategoryAnswers: updatedCategory };
|
|
199
200
|
|
|
201
|
+
console.log(updatedLocalData, "updatedLocalData");
|
|
202
|
+
console.log(updatedCategory, "updatedCategory");
|
|
203
|
+
console.log(updatedQuestions, "updatedQuestions");
|
|
204
|
+
|
|
200
205
|
setLocalData(updatedLocalData);
|
|
201
206
|
};
|
|
202
207
|
|
|
@@ -334,7 +339,7 @@ export const CategoryResponse = React.forwardRef((props: CategoryResponse, ref)
|
|
|
334
339
|
|
|
335
340
|
}
|
|
336
341
|
|
|
337
|
-
{question?.Actions &&
|
|
342
|
+
{question?.Actions?.length > 0 &&
|
|
338
343
|
<div className={styles.actionContainer}>
|
|
339
344
|
<span className={styles.note}>{t('components.categoryResponse.actions')}: </span>
|
|
340
345
|
|