decap-cms-widget-file 3.0.4 → 3.1.0-beta.1

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,7 +1,7 @@
1
1
  {
2
2
  "name": "decap-cms-widget-file",
3
3
  "description": "Widget for uploading files in Decap CMS.",
4
- "version": "3.0.4",
4
+ "version": "3.1.0-beta.1",
5
5
  "homepage": "https://www.decapcms.org/docs/widgets/#file",
6
6
  "repository": "https://github.com/decaporg/decap-cms/tree/master/packages/decap-cms-widget-file",
7
7
  "bugs": "https://github.com/decaporg/decap-cms/issues",
@@ -34,9 +34,9 @@
34
34
  "decap-cms-ui-default": "^3.0.0",
35
35
  "immutable": "^3.7.6",
36
36
  "prop-types": "^15.7.2",
37
- "react": "^16.8.4 || ^17.0.0",
37
+ "react": "^18.2.0",
38
38
  "react-immutable-proptypes": "^2.1.0",
39
39
  "uuid": "^8.3.2"
40
40
  },
41
- "gitHead": "d9cb3119d09e7a76b995e477f7578fb5ad80b461"
41
+ "gitHead": "0e1b780c559c682497f9b28ba3223ee59ca7865d"
42
42
  }
@@ -312,7 +312,9 @@ export default function withFileControl({ forImage } = {}) {
312
312
 
313
313
  const url = window.prompt(this.props.t(`editor.editorWidgets.${subject}.promptUrl`));
314
314
 
315
- return this.props.onChange(url);
315
+ if (url) {
316
+ return this.props.onChange(url);
317
+ }
316
318
  };
317
319
 
318
320
  handleRemove = e => {