wip: fix name update issue

This commit is contained in:
Eugene Molodkin 2024-11-06 14:58:02 +01:00
parent 0b0cde430f
commit befbc44d35
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,