Skip to content

Commit 6f1cebf

Browse files
committed
fix: isEmpty check if isMap
1 parent 251bd96 commit 6f1cebf

File tree

1 file changed

+1
-0
lines changed
  • packages/decap-cms-core/src/components/Editor/EditorControlPane

1 file changed

+1
-0
lines changed

packages/decap-cms-core/src/components/Editor/EditorControlPane/Widget.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ function isEmpty(value) {
1717
value === undefined ||
1818
(Object.prototype.hasOwnProperty.call(value, 'length') && value.length === 0) ||
1919
(value.constructor === Object && Object.keys(value).length === 0) ||
20+
(Map.isMap(value) && value.size === 0) ||
2021
(List.isList(value) && value.size === 0)
2122
);
2223
}

0 commit comments

Comments
 (0)