fix: Show empty state if there are no items

This commit is contained in:
Faris Ansari 2018-08-28 17:19:35 +05:30
parent c12f48da2d
commit 6df06cac97
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
<section-header>
<h4>{{ __('Buying') }}</h4>
</section-header>
<div class="row" v-if="items">
<div class="row" v-if="items && items.length">
<div class="col-md-7 margin-bottom"
v-for="item of items"
:key="item.name"

View File

@ -3,7 +3,7 @@
<section-header>
<h4>{{ __('Selling') }}</h4>
</section-header>
<div class="row" v-if="items">
<div class="row" v-if="items && items.length">
<div class="col-md-7"
style="margin-bottom: 30px;"
v-for="item of items"