File tree 1 file changed +4
-4
lines changed
packages/bygger-backend/src/migration
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ function parseFiltersFromParam(filtersFromParam: object): Filter[] {
20
20
} ) ;
21
21
}
22
22
23
- function getPropertyFromTarget ( comp : any , properties : string [ ] ) : string | undefined {
24
- if ( properties . length > 1 && comp [ properties [ 0 ] ] ) {
25
- return getPropertyFromTarget ( comp [ properties [ 0 ] ] , properties . slice ( 1 ) ) ;
23
+ function getPropertyFromTarget ( component : Component | NavFormType , properties : string [ ] ) : string | undefined {
24
+ if ( properties . length > 1 && component [ properties [ 0 ] ] ) {
25
+ return getPropertyFromTarget ( component [ properties [ 0 ] ] , properties . slice ( 1 ) ) ;
26
26
}
27
- return comp && comp [ properties [ 0 ] ] ;
27
+ return component && component [ properties [ 0 ] ] ;
28
28
}
29
29
30
30
function targetMatchesFilters ( target : Component | NavFormType , filters : Filter [ ] ) {
You can’t perform that action at this time.
0 commit comments