Skip to content

Commit

Permalink
Add comment about request.js lib
Browse files Browse the repository at this point in the history
  • Loading branch information
luciajanikova committed Sep 21, 2023
1 parent c0c31f6 commit ac7e5dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/javascript/controllers/autogram_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export default class extends Controller {
const authenticityToken = this.data.get("authenticityToken");

return new Promise((resolve, reject) => {
// request.js lib is used, responseKind: "turbo-stream" option is very important (be careful if case of changes)
patch(`/messages/${messageId}/message_objects/${messageObjectId}`, {
body: JSON.stringify({
authenticity_token: authenticityToken,
Expand Down

0 comments on commit ac7e5dd

Please sign in to comment.