We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5eef8e1 commit 6da35a8Copy full SHA for 6da35a8
packages/decap-cms-core/src/backend.ts
@@ -1384,7 +1384,14 @@ export class Backend {
1384
if (rawValue === null || rawValue === undefined) {
1385
values = [];
1386
} else if ((<StaticallyTypedRecord<List<string>>>rawValue).toJS) {
1387
- values = (<StaticallyTypedRecord<List<string>>>rawValue).toJS().toArray();
+ const valueList = (<StaticallyTypedRecord<List<string>>>rawValue).toJS();
1388
+
1389
+ if (valueList.toArray) {
1390
+ values = valueList.toArray();
1391
+ }
1392
+ else {
1393
+ values = valueList;
1394
1395
} else if (Array.isArray(rawValue)) {
1396
values = <string[]>rawValue;
1397
} else {
0 commit comments