@apexcura/ui-components 0.0.14-Beta300 → 0.0.14-Beta301

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
@@ -1007,7 +1007,7 @@ var import_antd18 = require("antd");
1007
1007
  var import_icons5 = require("@ant-design/icons");
1008
1008
  var FileUpload = (props) => {
1009
1009
  const { Dragger } = import_antd18.Upload;
1010
- const [files, setFiles] = (0, import_react25.useState)(props.value.length > 0 ? props.value : []);
1010
+ const [files, setFiles] = (0, import_react25.useState)(props.value && props.value.length > 0 ? props.value : []);
1011
1011
  const handleChange = ({ fileList }) => {
1012
1012
  setFiles(fileList);
1013
1013
  if (props.onChange) {
package/dist/index.mjs CHANGED
@@ -939,7 +939,7 @@ import { Upload } from "antd";
939
939
  import { InboxOutlined } from "@ant-design/icons";
940
940
  var FileUpload = (props) => {
941
941
  const { Dragger } = Upload;
942
- const [files, setFiles] = useState9(props.value.length > 0 ? props.value : []);
942
+ const [files, setFiles] = useState9(props.value && props.value.length > 0 ? props.value : []);
943
943
  const handleChange = ({ fileList }) => {
944
944
  setFiles(fileList);
945
945
  if (props.onChange) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.14-Beta300",
3
+ "version": "0.0.14-Beta301",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",