optimized-react-component-library-xyz123 0.19.12 → 0.19.13

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/dist/index.js CHANGED
@@ -705,7 +705,6 @@ var SelectedFiles = ({
705
705
  let e = { target: { value: `${newCountOfFiles} files`, files: newFiles } };
706
706
  const targetValue = e.target.value === "0 files" ? "" : e.target.value;
707
707
  e = { ...e, target: { ...e.target, value: targetValue } };
708
- console.log("Removing file, new e:", JSON.stringify(e));
709
708
  isTouched(e, questionObject);
710
709
  removeFile(newCountOfFiles);
711
710
  };
@@ -991,19 +990,14 @@ var AddFiles = ({
991
990
  });
992
991
  };
993
992
  (0, import_react7.useEffect)(() => {
994
- let e;
995
993
  if (newFiles.length > 0) {
996
994
  const currentFiles = questionObject.files ? questionObject.files : [];
997
- e = {
995
+ const e = {
998
996
  target: {
999
997
  value: currentFiles.length + newFiles.length > 0 ? `${currentFiles.length + newFiles.length} files` : "",
1000
998
  files: [...currentFiles, ...newFiles]
1001
999
  }
1002
1000
  };
1003
- console.log("Files added 1:", JSON.stringify(e));
1004
- const targetValue = e.target.value === "0 files" ? "" : e.target.value;
1005
- e = { ...e, target: { ...e.target, value: targetValue } };
1006
- console.log("Files added 2:", JSON.stringify(e));
1007
1001
  handleQuestionInputChange(e, questionObject);
1008
1002
  setNumberOfFiles(currentFiles.length + newFiles.length);
1009
1003
  setNewFiles([]);