Skip to content

Commit

Permalink
Use a placeholder for filenames with null values
Browse files Browse the repository at this point in the history
  • Loading branch information
floatline authored and dezhin committed Jul 27, 2024
1 parent 71a2b20 commit 701f6a9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ export function AttachmentTable({
className: "name",
title: gettext("File name"),
render: (name: string, attachment: FeatureAttachment) => {
if (!name) {
name = "<" + gettext("Empty filename") + ">";
}
const href = routeURL("feature_attachment.download", {
id: resourceId,
fid: featureId,
Expand Down

0 comments on commit 701f6a9

Please sign in to comment.