work on stale cache #1554

This commit is contained in:
Jokob @NetAlertX
2026-03-13 12:52:22 +00:00
parent 2771a6e9c2
commit b5b0bcc766
2 changed files with 17 additions and 5 deletions

View File

@@ -299,7 +299,7 @@ function updateChevrons(currentMac) {
showSpinner();
cacheDevices().then(() => {
cacheDevices(true).then(() => {
hideSpinner();
// Retry after re-caching
@@ -507,7 +507,7 @@ function updateDevicePageName(mac) {
if (mac != 'new' && (name === null|| owner === null)) {
console.warn("Device not found in cache, retrying after re-cache:", mac);
showSpinner();
cacheDevices().then(() => {
cacheDevices(true).then(() => {
hideSpinner();
// Retry after successful cache
updateDevicePageName(mac);