Skip to content

Commit 316b4dc

Browse files
Abdullah KhanAbdullah Khan
authored andcommitted
feat(trace-tree-node): Fixing ts lint errors
1 parent 9ec518b commit 316b4dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

static/app/views/insights/agents/hooks/useAITrace.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export function useAITrace(traceSlug: string): UseAITraceResult {
9393
await Promise.all(zoomPromises);
9494

9595
// Keep only transactions that include AI spans and the AI spans themselves
96-
const flattenedNodes = tree.root.findAllChildren(node => {
96+
const flattenedNodes = tree.root.findAllChildren<AITraceSpanNode>(node => {
9797
if (
9898
!isTransactionNodeEquivalent(node) &&
9999
!isSpanNode(node) &&

static/app/views/performance/newTraceDetails/traceModels/traceTreeNode/transactionNode.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export class TransactionNode extends BaseNode<TraceTree.Transaction> {
233233
* Returns the bounds of the added subtree as [start, end] timestamps.
234234
*/
235235
appendSpans(spans: TraceTree.Span[], event: EventTransaction | null): [number, number] {
236-
const txnChildren = this.findAllChildren(c => isTransactionNode(c));
236+
const txnChildren = this.findAllChildren<TransactionNode>(c => isTransactionNode(c));
237237

238238
// Clear children of root node as we are recreating the sub tree
239239
this.children = [];

0 commit comments

Comments
 (0)