display text when map name unavailable

deepsource-autofix-76c6eb20
Dan Gowans 2022-08-26 11:52:56 -04:00
parent 5204bdc6d5
commit 7a1b6e3f63
3 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@
<div> <div>
<strong><%= configFunctions.getProperty("aliases.map") %></strong><br /> <strong><%= configFunctions.getProperty("aliases.map") %></strong><br />
<a href="<%= urlPrefix %>/maps/<%= lot.mapId %>"> <a href="<%= urlPrefix %>/maps/<%= lot.mapId %>">
<%= lot.mapName %> <%= lot.mapName || "(No Name)" %>
</a> </a>
</div> </div>
<div class="mt-2"> <div class="mt-2">

View File

@ -13,7 +13,7 @@
</a> </a>
</li> </li>
<% if (!isCreate) { %> <% if (!isCreate) { %>
<li><a href="<%= urlPrefix %>/maps/<%= map.mapId %>"><%= map.mapName %></a></li> <li><a href="<%= urlPrefix %>/maps/<%= map.mapId %>"><%= map.mapName || "(No Name)" %></a></li>
<% } %> <% } %>
<li class="is-active"> <li class="is-active">
<a href="#" aria-current="page"> <a href="#" aria-current="page">

View File

@ -14,14 +14,14 @@
</li> </li>
<li class="is-active"> <li class="is-active">
<a href="#" aria-current="page"> <a href="#" aria-current="page">
<%= map.mapName %> <%= map.mapName || "(No Name)" %>
</a> </a>
</li> </li>
</ul> </ul>
</nav> </nav>
<h1 class="title is-1"> <h1 class="title is-1">
<%= map.mapName %> <%= map.mapName || "(No Name)" %>
</h1> </h1>
<% if (user.userProperties.canUpdate) { %> <% if (user.userProperties.canUpdate) { %>