fix app chrashing when sending invalid slash command (#2966)
This commit is contained in:
parent
f82b571d13
commit
aa6ddf062d
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ export function executeCommand(message, channelId, rootId) {
|
|||
|
||||
const {data, error} = await dispatch(executeCommandService(msg, args));
|
||||
|
||||
if (data.trigger_id) {
|
||||
if (data?.trigger_id) { //eslint-disable-line camelcase
|
||||
dispatch({type: IntegrationTypes.RECEIVED_DIALOG_TRIGGER_ID, data: data.trigger_id});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue