From ac7e5dd8509ab8810f2e78ef870d3f33f1f2375b Mon Sep 17 00:00:00 2001 From: luciajanikova <19lucia99@gmail.com> Date: Thu, 21 Sep 2023 16:36:32 +0200 Subject: [PATCH] Add comment about request.js lib --- app/javascript/controllers/autogram_controller.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/controllers/autogram_controller.js b/app/javascript/controllers/autogram_controller.js index 2cb3ea4ee..357661675 100644 --- a/app/javascript/controllers/autogram_controller.js +++ b/app/javascript/controllers/autogram_controller.js @@ -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,