File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,11 @@ import Function from "../../database/callable";
3
3
import ParmTreeItem from "./ParmTreeItem" ;
4
4
5
5
export async function getChildren ( schema : string , specificName : string ) : Promise < ParmTreeItem [ ] > {
6
- const parms = await Function . getParms ( schema , specificName ) ;
6
+ const signatures = await Function . getSignaturesFor ( schema , [ specificName ] ) ;
7
+ const allParms = signatures . map ( signature => signature . parms ) . flat ( ) ;
8
+ const removedDupes = allParms . filter ( ( parm , index ) => {
9
+ return allParms . findIndex ( p => p . PARAMETER_NAME === parm . PARAMETER_NAME && p . DATA_TYPE === p . DATA_TYPE ) === index ;
10
+ } ) ;
7
11
8
- return parms . map ( parm => new ParmTreeItem ( schema , specificName , parm ) ) ;
12
+ return removedDupes . map ( parm => new ParmTreeItem ( schema , specificName , parm ) ) ;
9
13
}
You can’t perform that action at this time.
0 commit comments