mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-08-19 06:46:23 +00:00
feat: enhance API error handling and improve alert message formatting
This commit is contained in:
@@ -145,7 +145,7 @@ export default function EditorLayout() {
|
||||
|
||||
const fetchNotifications = async () => {
|
||||
try {
|
||||
const res = await apiFetch('/notifications/history');
|
||||
const res = await apiFetch('/notifications');
|
||||
if (res.ok) {
|
||||
const data = await res.json();
|
||||
setNotifications(data);
|
||||
|
||||
Reference in New Issue
Block a user