mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-27 19:16:44 +00:00
Ensure defined response (#7511)
This commit is contained in:
parent
da42fdf06e
commit
3ed2a4a16b
@ -60,7 +60,7 @@ export function Header() {
|
|||||||
return null;
|
return null;
|
||||||
});
|
});
|
||||||
setNotificationCount(response?.data?.count ?? 0);
|
setNotificationCount(response?.data?.count ?? 0);
|
||||||
return response?.data;
|
return response?.data ?? null;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user