Hello! We are running our annual fundraising. Please consider making a donation if you value this freely available service or want to support people around the world working towards liberatory social change. https://riseup.net/donate.

Commit 7e288ee3 authored by void's avatar void
Browse files

fix: mostrar bien mensaje de no estar/estar en todas las barcas

parent 4f90c48a
......@@ -26,7 +26,10 @@
>A abordar</a
>
</nav>
<div class="lista-barcas" v-if="barcasFiltradas.length > 0">
<div
class="lista-barcas"
v-if="barcasFiltradas && barcasFiltradas.length > 0"
>
<barca
:barca="barca"
:key="barca.id"
......@@ -82,8 +85,11 @@ export default {
computed: {
...mapState(['barcas']),
barcasFiltradas() {
return this.barcas.filter(({ abordada }) =>
this.filtro === Filtros.ABORDADAS ? abordada : !abordada,
return (
this.barcas.length > 0 &&
this.barcas.filter(({ abordada }) =>
this.filtro === Filtros.ABORDADAS ? abordada : !abordada,
)
)
},
filtro() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment