]> git.openstreetmap.org Git - nominatim-ui.git/commitdiff
details: ignore missing computed postcode (#95)
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 28 Feb 2021 11:56:46 +0000 (12:56 +0100)
committerGitHub <noreply@github.com>
Sun, 28 Feb 2021 11:56:46 +0000 (12:56 +0100)
Avoid displaying 'null' when the postcode is missing.

src/pages/DetailsPage.svelte

index b7c436da11e90ccca847bcbccbba8e0f203d9a5b..7fb30b0406290946b0eacc4e4f543adcf2a6e2a9 100644 (file)
             {/if}
             <tr>
               <td>Computed Postcode</td>
-              <td>{aPlace.calculated_postcode}</td>
+              <td>{aPlace.calculated_postcode || ''}</td>
             </tr>
             <tr>
               <td>Address Tags</td>