Skip to content

Commit

Permalink
fix: change file-control default value to string
Browse files Browse the repository at this point in the history
  • Loading branch information
demshy committed Oct 10, 2023
1 parent ff95449 commit cb25cbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/decap-cms-widget-file/src/withFileControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cb25cbb

Please sign in to comment.