Commit e3e510c
committed
fix: guard against null fields in Card external-link branch
The condition '!fields && !fields.slug' would throw a TypeError when
fields is null/undefined because the second operand still accesses
.slug on the falsy value. Use '(!fields || !fields.slug)' instead.
Signed-off-by: Lee Calcote <lee.calcote@layer5.io>1 parent 91af28b commit e3e510c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
0 commit comments