From 6d069ce2ed089d6ceba5074e83b5a0518358e070 Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 5 Apr 2024 12:57:34 +0200 Subject: [PATCH] Fix task creation duplicates [SCI-10603] --- app/assets/javascripts/experiments/show.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/experiments/show.js b/app/assets/javascripts/experiments/show.js index 650850f7d..be35db24a 100644 --- a/app/assets/javascripts/experiments/show.js +++ b/app/assets/javascripts/experiments/show.js @@ -7,7 +7,7 @@ let myModuleUserSelector = '#my_module_user_ids'; var myModuleTagsSelector = '#module-tags-selector'; - $(document).on('submit', '#new-my-module-modal form', (event) => { + $('#experiment-canvas').on('submit', '#new-my-module-modal form', (event) => { event.preventDefault(); $.post({