wip: fix name update issue

This commit is contained in:
Eugene Molodkin 2024-11-06 14:58:02 +01:00 committed by Oleg Ivaniv
parent f61653f2e2
commit 6b3f2d40d2
No known key found for this signature in database

View file

@ -25,14 +25,16 @@ export class TestDefinitionsService {
annotationTagId?: string;
id?: number;
}) {
const entity: TestDefinitionLike = {
name: attrs.name?.trim(),
};
const entity: TestDefinitionLike = {};
if (attrs.id) {
entity.id = attrs.id;
}
if (attrs.name) {
entity.name = attrs.name?.trim();
}
if (attrs.workflowId) {
entity.workflow = {
id: attrs.workflowId,