Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Commit

Permalink
Merge pull request #124 from OriginLeon/master
Browse files Browse the repository at this point in the history
Fix fetchOptions prop
  • Loading branch information
hotzenklotz committed Feb 5, 2020
2 parents e35f9ec + a6677c9 commit 1fda5e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ConnectedChatroom.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ export default class ConnectedChatroom extends Component<
sender: this.props.userId
};

const fetchOptions = Object.assign({}, this.props.fetchOptions, {
const fetchOptions = Object.assign({}, {
method: "POST",
body: JSON.stringify(rasaMessageObj),
headers: {
"Content-Type": "application/json"
}
});
}, this.props.fetchOptions);

const response = await fetch(
`${this.props.host}/webhooks/rest/webhook`,
Expand Down

0 comments on commit 1fda5e9

Please sign in to comment.