fix: no need to show error in login for first

This commit is contained in:
jialin
2026-06-05 16:24:46 +08:00
committed by jialin
parent f2bff0d1fb
commit 46f859cc3c
7 changed files with 50 additions and 22 deletions
+6 -1
View File
@@ -82,7 +82,12 @@ const HAS_RESOURCE_EVENTS_KEY = 'hasResourceEvents';
const probeHasResourceEvents = async (): Promise<boolean | undefined> => {
try {
// No date range = "ever"; scope is clamped to the caller server-side.
const res = await queryResourceEvents({ perPage: 1 });
const res = await queryResourceEvents(
{ perPage: 1 },
{
skipErrorHandler: true
}
);
const value = (res?.pagination?.total ?? 0) > 0;
try {
window.sessionStorage.setItem(