Skip to content

Commit 449d1a4

Browse files
committed
bookmarks in the frontend were showing a useless but very alarming error
1 parent 9034881 commit 449d1a4

File tree

1 file changed

+3
-3
lines changed
  • src/packages/frontend/project/page/flyouts

1 file changed

+3
-3
lines changed

src/packages/frontend/project/page/flyouts/store.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ export function useStarredFilesManager(project_id: string) {
5757
};
5858
await api("bookmarks/set", payload);
5959
} catch (err) {
60-
console.error("api error", err);
60+
console.warn(`bookmark: warning -- ${err}`);
6161
}
6262
}
6363

6464
// this is called once, when the flyout/tabs component is mounted
65-
// throtteld, to usually take 1 sec from opening the panel to loading the stars
65+
// throtteled, to usually take 1 sec from opening the panel to loading the stars
6666
const updateStarred = throttle(
6767
async () => {
6868
try {
@@ -105,7 +105,7 @@ export function useStarredFilesManager(project_id: string) {
105105
console.error("flyout/store/starred error: unknown status", status);
106106
}
107107
} catch (err) {
108-
console.error("api error", err);
108+
console.warn(`bookmark: warning -- ${err}`);
109109
}
110110
},
111111
1000,

0 commit comments

Comments
 (0)