mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-04 08:38:34 +00:00
fix(infra): reduce workspace avatar request (#6713)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { DebugLogger } from '@affine/debug';
|
||||
import { catchError, EMPTY, mergeMap, switchMap } from 'rxjs';
|
||||
import { catchError, EMPTY, exhaustMap, mergeMap } from 'rxjs';
|
||||
|
||||
import { Entity } from '../../../framework';
|
||||
import {
|
||||
@@ -59,7 +59,7 @@ export class WorkspaceProfile extends Entity<{ metadata: WorkspaceMetadata }> {
|
||||
}
|
||||
|
||||
revalidate = effect(
|
||||
switchMap(() => {
|
||||
exhaustMap(() => {
|
||||
const provider = this.provider;
|
||||
if (!provider) {
|
||||
return EMPTY;
|
||||
|
||||
Reference in New Issue
Block a user