<img *ngIf="!selectedOrganizationDetail[0]?.logo" src='some-link' alt="call-home-care-logo" class="logo default-logo">
I am getting data inside selectedOrganizationDetail from API call. But in my HTML i have an *ngIf, and it works fine but this error "Cannot read properties of null (reading '0')" shows up in the console everytime. What should i do ?