Skip to content

Commit 359716c

Browse files
committed
Improve name and type
1 parent 82c22b7 commit 359716c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/bygger-backend/src/migration/filterUtils.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ function parseFiltersFromParam(filtersFromParam: object): Filter[] {
2020
});
2121
}
2222

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));
2626
}
27-
return comp && comp[properties[0]];
27+
return component && component[properties[0]];
2828
}
2929

3030
function targetMatchesFilters(target: Component | NavFormType, filters: Filter[]) {

0 commit comments

Comments
 (0)