From 90c984477488ed08c55a42eb1d3b45accf46c832 Mon Sep 17 00:00:00 2001 From: Anze Demsar Date: Tue, 10 Oct 2023 16:31:56 +0200 Subject: [PATCH] fix: change file-control default value to string (#6934) --- packages/decap-cms-widget-file/src/withFileControl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/decap-cms-widget-file/src/withFileControl.js b/packages/decap-cms-widget-file/src/withFileControl.js index 9bf87237bf8e..aabffaf8639c 100644 --- a/packages/decap-cms-widget-file/src/withFileControl.js +++ b/packages/decap-cms-widget-file/src/withFileControl.js @@ -202,7 +202,7 @@ function sizeOfValue(value) { } function valueListToArray(value) { - return List.isList(value) ? value.toArray() : value ?? []; + return List.isList(value) ? value.toArray() : value ?? ''; } function valueListToSortableArray(value) {