.ts:
siteName: string;
this.store.pipe(
select(getSiteName),
filter(Boolean),
take(1)
).subscribe(siteName => this.siteName = siteName);
Error:
Type 'unknown' is not assignable to type 'string'
I encountered the error message mentioned above for the variable this.siteName
after including the filter(Boolean)
operator in the pipe. Strangely, no errors were present prior to adding the filter operator. Any ideas on what might be causing this issue?