Use "N/A" if local.version is null to avoid empty version

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
RD WebDesign
2025-03-07 01:45:59 -03:00
parent 54e5b29416
commit c3d09c92e9

View File

@@ -485,8 +485,8 @@ function updateVersionInfo() {
var versions = [
{
name: "Docker Tag",
local: version.docker.local || null,
remote: version.docker.remote || null,
local: version.docker.local,
remote: version.docker.remote,
branch: null,
hash: null,
url: "https://github.com/pi-hole/docker-pi-hole/releases",
@@ -494,28 +494,28 @@ function updateVersionInfo() {
{
name: "Core",
local: version.core.local.version || "N/A",
remote: version.core.remote.version || "N/A",
branch: version.core.local.branch || null,
hash: version.core.local.hash || null,
hash_remote: version.core.remote.hash || null,
remote: version.core.remote.version,
branch: version.core.local.branch,
hash: version.core.local.hash,
hash_remote: version.core.remote.hash,
url: "https://github.com/pi-hole/pi-hole/releases",
},
{
name: "FTL",
local: version.ftl.local.version || "N/A",
remote: version.ftl.remote.version || "N/A",
branch: version.ftl.local.branch || null,
hash: version.ftl.local.hash || null,
hash_remote: version.ftl.remote.hash || null,
remote: version.ftl.remote.version,
branch: version.ftl.local.branch,
hash: version.ftl.local.hash,
hash_remote: version.ftl.remote.hash,
url: "https://github.com/pi-hole/FTL/releases",
},
{
name: "Web interface",
local: version.web.local.version || "N/A",
remote: version.web.remote.version || "N/A",
branch: version.web.local.branch || null,
hash: version.web.local.hash || null,
hash_remote: version.web.remote.hash || null,
remote: version.web.remote.version,
branch: version.web.local.branch,
hash: version.web.local.hash,
hash_remote: version.web.remote.hash,
url: "https://github.com/pi-hole/web/releases",
},
];