Fix Not All Code Paths Return A Value Ts 7030 Angular Typescript

Fix Not All Code Paths Return A Value Ts 7030 Angular Typescript