From 5d4ea27505099a5c15bfa336be4f62dc02b23f90 Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Fri, 23 May 2025 15:34:04 +0800 Subject: [PATCH] fix(explorer): error snackbar not shown while opening expired single file share shortcut --- src/api/api.ts | 4 ++-- src/redux/thunks/file.ts | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/api/api.ts b/src/api/api.ts index 6c5f6bc..2513ef4 100644 --- a/src/api/api.ts +++ b/src/api/api.ts @@ -231,7 +231,7 @@ export function sendRefreshToken(req: RefreshTokenRequest): ThunkResponse }; } -export function getFileList(req: ListFileService): ThunkResponse { +export function getFileList(req: ListFileService, skipSnackbar = true): ThunkResponse { return async (dispatch, _getState) => { return await dispatch( send( @@ -282,7 +282,7 @@ export function getUserInfo(uid: string): ThunkResponse { }, { ...defaultOpts, - bypassSnackbar: (_e) => true, + bypassSnackbar: (_e) => skipSnackbar, }, ), ); diff --git a/src/redux/thunks/file.ts b/src/redux/thunks/file.ts index d6c7333..0a644f3 100644 --- a/src/redux/thunks/file.ts +++ b/src/redux/thunks/file.ts @@ -1163,10 +1163,13 @@ export function refreshSingleFileSymbolicLinks(file: FileResponse): AppThunk