@omniumretail/component-library 1.1.92 → 1.1.93

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.92",
3
+ "version": "1.1.93",
4
4
  "private": false,
5
5
  "main": "dist/bundle.js",
6
6
  "typings": "./dist/types/index",
@@ -96,14 +96,16 @@ export const CategoryResponse = React.forwardRef((props: CategoryResponse, ref)
96
96
  // Setting first set of questions as default open
97
97
  const [selectedCategory, setSelectedCategory] = useState<any>(data.CategoryAnswers[0]);
98
98
  const [initialValues, setInitialValues] = useState<any>(data.CategoryAnswers[0].Data);
99
- // const [fileLists, setFileLists] = useState<Record<string, UploadFile[]>>(props.initialFileList || []);
100
99
  const [fileLists, setFileLists] = useState<Record<string, UploadFile[]>>(props.initialFileList || []);
101
100
  const [dataValue, setDataValue] = useState<any>();
102
101
  const [isNoteVisible, setIsNoteVisible] = useState<{ categoryIndex: number; questionIndex: number } | null>(null);
103
102
  const [form] = useForm();
104
103
 
105
- console.log(fileLists, "fileLists");
106
- console.log(props.initialFileList, "props.initialFileList");
104
+ useEffect(() => {
105
+ if (props.initialFileList) {
106
+ setFileLists(props.initialFileList);
107
+ }
108
+ },[props.initialFileList]);
107
109
 
108
110
  const updateInitialValues = (data: any) => {
109
111
  const {