mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 00:54:06 -08:00
wip: fix name update issue
This commit is contained in:
parent
f61653f2e2
commit
6b3f2d40d2
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue