diff options
author | Martin Fischer <martin@push-f.com> | 2022-07-12 13:37:22 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2022-07-12 13:37:22 +0200 |
commit | 73f331a6ba321a1cb72854d92ca2724c34cb210c (patch) | |
tree | bf41603a46966d567ad8a56ed219097514ea0d9a /script.js | |
parent | 88d6a52f239c8dc706eeee337fae4972de5a9936 (diff) |
use page_title as fallback if there is no proposal name
Diffstat (limited to 'script.js')
-rw-r--r-- | script.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -27,7 +27,7 @@ function display(proposals) { } row.appendChild(newEl('td', date)); - const link = newEl('a', proposal.name); + const link = newEl('a', proposal.name || proposal.page_title); link.href = 'https://wiki.openstreetmap.org/wiki/' + proposal.page_title.replaceAll(' ', '_'); row.appendChild(newEl('td', link)); row.appendChild(newEl('td', proposal.authors)); |