bugfix shortUrl replace of null

This commit is contained in:
Bachir Soussi Chiadmi 2021-11-23 10:47:38 +01:00
parent 3107ff72db
commit 08fbc7359d
4 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -148,7 +148,7 @@
<ul> <ul>
<li v-for="manu in material.manufacturer" v-bind:key="manu.id"> <li v-for="manu in material.manufacturer" v-bind:key="manu.id">
<h2>{{ manu.name }}</h2> <h2>{{ manu.name }}</h2>
<p v-if="manu.website"> <p v-if="manu.website.url">
<a target="_blank" :href="manu.website.url">{{shortUrl(manu.website.url)}}</a> <a target="_blank" :href="manu.website.url">{{shortUrl(manu.website.url)}}</a>
</p> </p>
<p v-if="manu.email"><a :href="'mailto:'+manu.email">{{ manu.email }}</a></p> <p v-if="manu.email"><a :href="'mailto:'+manu.email">{{ manu.email }}</a></p>
@ -160,7 +160,7 @@
<ul> <ul>
<li v-for="distrib in material.distributor" v-bind:key="distrib.id"> <li v-for="distrib in material.distributor" v-bind:key="distrib.id">
<h2>{{ distrib.name }}</h2> <h2>{{ distrib.name }}</h2>
<p v-if="distrib.website"> <p v-if="distrib.website.url">
<a target="_blank" :href="distrib.website.url">{{shortUrl(distrib.website.url)}}</a> <a target="_blank" :href="distrib.website.url">{{shortUrl(distrib.website.url)}}</a>
</p> </p>
<p v-if="distrib.email"><a :href="'mailto:'+distrib.email">{{ distrib.email }}</a></p> <p v-if="distrib.email"><a :href="'mailto:'+distrib.email">{{ distrib.email }}</a></p>