From 3535030ed812123685c917a49d3c8a63de2d14d8 Mon Sep 17 00:00:00 2001 From: alexdbondoc17 Date: Wed, 2 Mar 2022 05:48:29 +0000 Subject: [PATCH] Fix `delete` of `annotations` --- app/javascript/controllers/annotations_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/controllers/annotations_controller.js b/app/javascript/controllers/annotations_controller.js index 86b774f..f395ca2 100644 --- a/app/javascript/controllers/annotations_controller.js +++ b/app/javascript/controllers/annotations_controller.js @@ -104,7 +104,7 @@ export default class extends ApplicationController { url: "/api/doctrines/" + doctrine_id + "/annotations/" + annotation_id, type: 'DELETE', success: function() { - $this.stimulate("AnnotationReflex#render_annotations_views", { page: 1 }) + $this.stimulate("AnnotationReflex#render_annotations_views", { doctrine_id: doctrine_id, page: 1 }) } }) }