fix: display release versions with a single v in the dashboard
Some checks are pending
CI / vet-build-test (push) Waiting to run
Some checks are pending
CI / vet-build-test (push) Waiting to run
This commit is contained in:
parent
f6b2554740
commit
c655e941bc
1 changed files with 1 additions and 1 deletions
|
|
@ -1324,7 +1324,7 @@
|
||||||
===================================================================== */
|
===================================================================== */
|
||||||
function applyState(s){
|
function applyState(s){
|
||||||
const prev={...state.totals};
|
const prev={...state.totals};
|
||||||
if(s.hub){ state.hub=s.hub; $("m-version").textContent=s.hub.version||"—";
|
if(s.hub){ state.hub=s.hub; $("m-version").textContent=(s.hub.version||"—").replace(/^v/, "");
|
||||||
state.baseUptime=s.hub.uptime_s||0; state.baseUptimeAt=Date.now(); }
|
state.baseUptime=s.hub.uptime_s||0; state.baseUptimeAt=Date.now(); }
|
||||||
if(s.totals){ state.totals={...state.totals, ...s.totals}; }
|
if(s.totals){ state.totals={...state.totals, ...s.totals}; }
|
||||||
if(Array.isArray(s.devices)){ state.devices=s.devices;
|
if(Array.isArray(s.devices)){ state.devices=s.devices;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue