readcollection: fix mandatory for deleted files (#10488)

reviewable/pr10498/r1
hius07 11 months ago committed by GitHub
parent 46578c0e12
commit 177092243f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -42,7 +42,7 @@ function ReadCollection:prepareList(collection_name)
file = file_path,
text = v.file:gsub(".*/", ""),
dim = not file_exists,
mandatory = file_exists and util.getFriendlySize(lfs.attributes(file_path, "size") or 0),
mandatory = file_exists and util.getFriendlySize(lfs.attributes(file_path, "size") or 0) or "",
select_enabled = file_exists,
})
end

Loading…
Cancel
Save