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