remove ngx scrollbar

This commit is contained in:
2023-11-02 22:26:42 +01:00
parent c19e115b43
commit d71bd41495
9 changed files with 10 additions and 69 deletions

View File

@@ -21,7 +21,7 @@ export class DbService {
return typeof ref === 'string' ? this.afs.doc<T>(ref) : ref;
}
public doc$<T>(ref: DocumentPredicate<T>): Observable<(T & {id: string}) | null> {
public doc$<T>(ref: DocumentPredicate<T>): Observable<(NonNullable<T> & {id?: string}) | null> {
return this.doc(ref)
.valueChanges({idField: 'id'})
.pipe(map(_ => (_ ? _ : null)));