File tree Expand file tree Collapse file tree
extensions/ql-vscode/src/view/model-editor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,16 +14,19 @@ interface Props {
1414 someMethodsAreVisible : boolean ;
1515}
1616
17- export function HiddenMethodsRow ( props : Props ) {
18- if ( props . numHiddenMethods === 0 ) {
17+ export function HiddenMethodsRow ( {
18+ numHiddenMethods,
19+ someMethodsAreVisible,
20+ } : Props ) {
21+ if ( numHiddenMethods === 0 ) {
1922 return null ;
2023 }
2124
2225 return (
2326 < VSCodeDataGridRow >
2427 < HiddenMethodsCell gridColumn = "span 5" >
25- { props . someMethodsAreVisible && "And " }
26- { props . numHiddenMethods } methods modeled in other CodeQL packs
28+ { someMethodsAreVisible && "And " }
29+ { numHiddenMethods } methods modeled in other CodeQL packs
2730 </ HiddenMethodsCell >
2831 </ VSCodeDataGridRow >
2932 ) ;
Original file line number Diff line number Diff line change @@ -71,7 +71,9 @@ type Props = {
7171} ;
7272
7373export const MethodRow = ( props : Props ) => {
74- if ( props . methodCanBeModeled ) {
74+ const { methodCanBeModeled } = props ;
75+
76+ if ( methodCanBeModeled ) {
7577 return < ModelableMethodRow { ...props } /> ;
7678 } else {
7779 return < UnmodelableMethodRow { ...props } /> ;
You can’t perform that action at this time.
0 commit comments