.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'm getting the above error for this.siteName, after adding the filter(Boolean) operator to the pipe. Without the filter operator I didn't see any errors, am I missing something ??