2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 04:55:44 +00:00

Check that notification target is not null (#3449)

* Check that target is not null

* Prevent display of "negative" notification coutner

* spelling fix
This commit is contained in:
Oliver
2022-08-01 14:25:24 +10:00
committed by GitHub
parent ee18ce9a7a
commit 6118d1319c
2 changed files with 9 additions and 2 deletions

View File

@ -174,6 +174,12 @@ function updateNotificationReadState(btn, panel_caller=false) {
} else {
count = count + 1;
}
// Prevent negative notification count
if (count < 0) {
count = 0;
}
// update notification indicator now
updateNotificationIndicator(count);