Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit 57ea5a0

Browse files
demshymartinjagodic
authored andcommitted
fix: change file-control default value to string (decaporg#6934)
1 parent 181f40a commit 57ea5a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/decap-cms-widget-file/src/withFileControl.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ function sizeOfValue(value) {
202202
}
203203

204204
function valueListToArray(value) {
205-
return List.isList(value) ? value.toArray() : value ?? [];
205+
return List.isList(value) ? value.toArray() : value ?? '';
206206
}
207207

208208
function valueListToSortableArray(value) {

0 commit comments

Comments
 (0)