We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d9b81b5 + d236b51 commit a3a13f6Copy full SHA for a3a13f6
1 file changed
src/scripting_api/common.js
@@ -22,13 +22,7 @@ const FieldType = {
22
};
23
24
function createActionsMap(actions) {
25
- const actionsMap = new Map();
26
- if (actions) {
27
- for (const [eventType, actionsForEvent] of Object.entries(actions)) {
28
- actionsMap.set(eventType, actionsForEvent);
29
- }
30
31
- return actionsMap;
+ return new Map(actions ? Object.entries(actions) : null);
32
}
33
34
function getFieldType(actions) {
0 commit comments