luci-app-dockerman: fix unhandled nil on containers page

This commit is contained in:
Anton Luzgin
2025-11-28 12:42:32 +04:00
committed by Paul Donald
parent 3c3a5e2b1a
commit 96f046d45b

View File

@@ -77,7 +77,7 @@ function get_containers()
for ii,iv in ipairs(images) do
if iv.Id == v.ImageID then
data[index]["_image"] = iv.RepoTags and iv.RepoTags[1] or (iv.RepoDigests[1]:gsub("(.-)@.+", "%1") .. ":<none>")
data[index]["_image"] = iv.RepoTags and iv.RepoTags[1] or ((iv.RepoDigests[1] or ""):gsub("(.-)@.+", "%1") .. ":<none>")
end
end