Skip to content

Commit fb4732f

Browse files
committed
hotfix
1 parent 527f4d2 commit fb4732f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/core/taskmaster/TaskMaster.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ export class TaskMaster {
977977
subtaskId: number,
978978
parentId: number,
979979
): Promise<void> {
980-
await this.deleteAllDepsSafelyFromTaskAsync(subtaskId.toString());
980+
await this.deleteAllDepsUnsafeFromTaskAsync(subtaskId.toString());
981981
await this._executeCommandAsync(
982982
`Converting task ${subtaskId} to subtask of ${parentId}...`,
983983
`Task ${subtaskId} converted to subtask successfully!`,
@@ -995,7 +995,7 @@ export class TaskMaster {
995995
public async convertSubtaskToTaskAsync(
996996
hierarchicalId: string,
997997
): Promise<void> {
998-
await this.deleteAllDepsSafelyFromTaskAsync(hierarchicalId);
998+
await this.deleteAllDepsUnsafeFromTaskAsync(hierarchicalId);
999999
await this._executeCommandAsync(
10001000
`Converting subtask ${hierarchicalId} to task...`,
10011001
`Subtask ${hierarchicalId} converted to task successfully!`,
@@ -1144,7 +1144,6 @@ export class TaskMaster {
11441144

11451145
await oraPromise(async () => {
11461146
const tasks = await this.getTasksContentAsync();
1147-
11481147
if (!taskId.includes(".")) {
11491148
// It's a main task
11501149
const idNum = Number.parseInt(taskId, 10);

0 commit comments

Comments
 (0)