Skip to content

Commit ccfc613

Browse files
jason0x43blakeembrey
authored andcommitted
Fix Map handling in declaration.ts (#455)
1 parent 5148714 commit ccfc613

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/utils/options/declaration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class OptionDeclaration {
9898
const values = Object.keys(map).map(key => map[key]);
9999

100100
if (map instanceof Map) {
101-
value = map.has(key) ? map.get(key) : key;
101+
value = map.has(key) ? map.get(key) : value;
102102
} else if (key in map) {
103103
value = map[key];
104104
} else if (values.indexOf(value) === -1 && errorCallback) {

0 commit comments

Comments
 (0)