Commit d16f185
authored
Fix CopyPromptButton crashing when rendered with no props (#513)
<CopyPromptButton /> with no attributes passes null props under the
classic JSX transform, and destructuring defaults only apply to
undefined, not null, so the homepage's default-prompt usage broke
while the parameterized usage on the Foreman page kept working.1 parent ec21b53 commit d16f185
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
0 commit comments