diff --git a/src/app/api/tasks/tasksShared.service.ts b/src/app/api/tasks/tasksShared.service.ts index cc94ea20f..c8c17216f 100644 --- a/src/app/api/tasks/tasksShared.service.ts +++ b/src/app/api/tasks/tasksShared.service.ts @@ -507,7 +507,6 @@ export abstract class TasksSharedService extends BaseService { protected async createSubtasksFromTemplate(data: TaskTemplate, parentTask: Task, manualTimestamp: Date) { const { workspaceId, title, body, workflowStateId } = data - const previewMode = Boolean(this.user.clientId || this.user.companyId) const { id: parentId, internalUserId, clientId, companyId, associations } = parentTask try { @@ -518,12 +517,10 @@ export abstract class TasksSharedService extends BaseService { workflowStateId, parentId, templateId: undefined, //just to be safe from circular recursion - ...(previewMode && { - internalUserId, - clientId, - companyId, - associations, - }), //On CRM view, we set assignee and viewers for subtasks same as the parent task. + internalUserId, + clientId, + companyId, + associations, }) await this.createTask(createTaskPayload, { disableSubtaskTemplates: true, manualTimestamp: manualTimestamp })