@@ -4,12 +4,11 @@ import DataTransformation from './DataTransformation';
44
55interface TraceStepProps {
66 record : TraceRecord ;
7- isFirst : boolean ;
87 index : number ;
98}
109
1110// Determine if we should show arguments for this operation
12- function shouldShowArgs ( operation : string , args : any [ ] ) : boolean {
11+ function shouldShowArgs ( operation : string ) : boolean {
1312 // Hide arguments for operations where they're too verbose or obvious from visualization
1413 const hideArgsFor = [ 'with_columns' , 'with_column' ] ;
1514 return ! hideArgsFor . includes ( operation ) ;
@@ -61,7 +60,7 @@ function formatArgs(operation: string, args: any[]): string {
6160 return 'See table data below' ;
6261}
6362
64- export default function TraceStep ( { record, isFirst , index } : TraceStepProps ) {
63+ export default function TraceStep ( { record, index } : TraceStepProps ) {
6564 const [ expanded , setExpanded ] = useState ( false ) ;
6665 const [ isVisible , setIsVisible ] = useState ( false ) ;
6766
@@ -96,7 +95,7 @@ export default function TraceStep({ record, isFirst, index }: TraceStepProps) {
9695
9796 { expanded && hasValidData && (
9897 < div className = "step-details" >
99- { record . args && record . args . length > 0 && shouldShowArgs ( record . operation , record . args ) && (
98+ { record . args && record . args . length > 0 && shouldShowArgs ( record . operation ) && (
10099 < div className = "step-args" >
101100 < strong > Arguments:</ strong > < code > { formatArgs ( record . operation , record . args ) } </ code >
102101 </ div >
0 commit comments