mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-20 15:29:28 +01:00
fix #1074: duplicate template
Previously, duplicating wouldn't work correctly and overwrite the existing task. By explicitly setting the item's ID to null after copying the data, we avoid this behaviour.
This commit is contained in:
parent
d3c81c6992
commit
6162408b3d
@ -431,6 +431,7 @@ export default {
|
||||
url: `/api/project/${this.projectId}/templates/${this.sourceItemId}`,
|
||||
responseType: 'json',
|
||||
})).data;
|
||||
this.item.id = null;
|
||||
}
|
||||
|
||||
this.advancedOptions = this.item.arguments != null || this.item.allow_override_args_in_task;
|
||||
|
Loading…
Reference in New Issue
Block a user