The snippet below shows an observable being subscribed to however it's not set to a variable which means the subscription is not stored for unsubscriptions later, there are a few of these through out the application.
|
this.http.get<ApiResponse>(`${environment.apiUrl}/gradient/all`).subscribe({ |
|
next: (resp: ApiResponse) => { |
|
this.gradients = resp.data; |
|
}, |
|
error: (error: HttpErrorResponse) => { |
|
this.utilService.devlog(error.error); |
|
}, |
|
}); |
The snippet below shows an observable being subscribed to however it's not set to a variable which means the subscription is not stored for unsubscriptions later, there are a few of these through out the application.
salient-styles/src/app/pages/home/home.component.ts
Lines 24 to 31 in ed806ec