i think you just need to initialize value of selectedProjectId
ngOnInit(): void { selectedProjectId = 0 }