Commit d6d9db7
committed
Fix TypeError when submitting w/o SLACK_CHANNELS config
Introduced with the merge of rauchg#152,
the problem was if the `SLACK_CHANNELS` environment variable wasn't set
up, then no hidden form element with the listed channels would be
included. Therefore, our `channel` variable would be `undefined`, and a
direct access of the `value` property would crash the app.1 parent eefd279 commit d6d9db7
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments