The text property is optional (#19034)
This commit is contained in:
parent
897f5f3f1a
commit
6528ef0d33
|
@ -69,9 +69,6 @@ export class SlackAction extends BaseAction {
|
||||||
if (!json.actionJson.slack.message.to) {
|
if (!json.actionJson.slack.message.to) {
|
||||||
throw badRequest('json argument must contain an actionJson.slack.message.to property');
|
throw badRequest('json argument must contain an actionJson.slack.message.to property');
|
||||||
}
|
}
|
||||||
if (!json.actionJson.slack.message.text) {
|
|
||||||
throw badRequest('json argument must contain an actionJson.slack.message.text property');
|
|
||||||
}
|
|
||||||
|
|
||||||
Object.assign(props, {
|
Object.assign(props, {
|
||||||
to: json.actionJson.slack.message.to,
|
to: json.actionJson.slack.message.to,
|
||||||
|
|
Loading…
Reference in a new issue