From 1efc3a08aa0637e98853ded1cc03c7b288b9ab89 Mon Sep 17 00:00:00 2001 From: Cameron Perera Date: Fri, 19 Jul 2024 13:14:30 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20add=20trim()=20to=20value?= =?UTF-8?q?s=20when=20creating=20tags=20(#2405)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/admin/app/components/form/worker/create-tags/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/admin/app/components/form/worker/create-tags/index.js b/ui/admin/app/components/form/worker/create-tags/index.js index da2827782..9780e6db6 100644 --- a/ui/admin/app/components/form/worker/create-tags/index.js +++ b/ui/admin/app/components/form/worker/create-tags/index.js @@ -48,7 +48,7 @@ export default class FormWorkerCreateTagsIndexComponent extends Component { const apiTags = structuredClone(this.args.model.api_tags ?? {}); this.args.apiTags.forEach((tag) => { let key = tag.key; - let values = tag.value.split(','); + let values = tag.value.split(',').map((value) => value.trim()); if (!apiTags[key]) { apiTags[key] = values;