From 93b75403df44925aa26d849b58878fab165621e2 Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 20 Mar 2024 15:59:38 +0100 Subject: [PATCH] Fix designated users on task and new task modal [SCI-10488] --- app/controllers/user_my_modules_controller.rb | 4 +-- app/javascript/vue/my_modules/modals/new.vue | 28 +++++++++++-------- .../my_modules/renderers/designated_users.vue | 10 +++++-- app/views/my_modules/index.html.erb | 2 +- 4 files changed, 25 insertions(+), 19 deletions(-) diff --git a/app/controllers/user_my_modules_controller.rb b/app/controllers/user_my_modules_controller.rb index da7fc646f..8e9e2f33b 100644 --- a/app/controllers/user_my_modules_controller.rb +++ b/app/controllers/user_my_modules_controller.rb @@ -117,9 +117,7 @@ class UserMyModulesController < ApplicationController user_hash end - render json: { - users: users.compact - } + render json: users.compact end private diff --git a/app/javascript/vue/my_modules/modals/new.vue b/app/javascript/vue/my_modules/modals/new.vue index 5ffada2ec..653b9eb05 100644 --- a/app/javascript/vue/my_modules/modals/new.vue +++ b/app/javascript/vue/my_modules/modals/new.vue @@ -45,18 +45,20 @@ :placeholder="i18n.t('experiments.canvas.new_my_module_modal.assigned_tags_placeholder')" :tagsView="true" > - - +