fix: 🐛 add trim() to values when creating tags (#2405)
This commit is contained in:
1 parent
03376f0ae6
commit
1efc3a08aa
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user