fix(decorators): fixes decorator reflection.
The bug appears when there are only type annotations without parameter annotations.
This commit is contained in:
@@ -56,7 +56,7 @@ export class ReflectionCapabilities {
|
||||
} else {
|
||||
result[i] = [];
|
||||
}
|
||||
if (isPresent(paramAnnotations[i])) {
|
||||
if (isPresent(paramAnnotations) && isPresent(paramAnnotations[i])) {
|
||||
result[i] = result[i].concat(paramAnnotations[i]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user