Skip to content

Commit

Permalink
fix(core): ignore null values in breakpoint fallback mechanism (#1247)
Browse files Browse the repository at this point in the history
  • Loading branch information
CaerusKaru committed May 10, 2020
1 parent a96ef13 commit 5085909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/core/media-marshaller/media-marshaller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export class MediaMarshaller {
const activatedBp = this.activatedBreakpoints[i];
const valueMap = bpMap.get(activatedBp.alias);
if (valueMap) {
if (key === undefined || (valueMap.has(key) && valueMap.get(key) !== undefined)) {
if (key === undefined || (valueMap.has(key) && valueMap.get(key) != null)) {
return valueMap;
}
}
Expand Down

0 comments on commit 5085909

Please sign in to comment.