Skip to content

Commit

Permalink
chore: fix TuiDestroyService migration (#7970)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirpotekhin authored Jun 28, 2024
1 parent b1f1927 commit 8b073ce
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ export function migrateDestroyService(options: TuiSchema): void {
}

function findTakeUntil(node: Node, maxDepth = 10): CallExpression | null {
if (node.wasForgotten()) {
return null;
}

if (Node.isCallExpression(node) && node.getText().includes('takeUntil(')) {
return node;
}
Expand Down

0 comments on commit 8b073ce

Please sign in to comment.