Commit faccac0
committed
fix(material/core): add validation to create-token-slot (#27357)
Currently we look up if a token is set to null in the token map, and if it is, we don't emit the slot at all. The problem is that `null` is also returned if the token doesn't exist at all which may mask some bugs.
These changes add a check to verify that the token exists before trying to look it up.
(cherry picked from commit 425c469)1 parent aedcd49 commit faccac0
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
| |||
0 commit comments