Skip to content

Commit 504f9de

Browse files
Anthony KinseyAnthony Kinsey
Anthony Kinsey
authored and
Anthony Kinsey
committed
fix: issue with threads not showing up in boards
1 parent 3d4b5d8 commit 504f9de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/views/Threads.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,17 @@
5656
</table>
5757

5858
<!-- Thread Sorting Controls -->
59-
<div class="centered-text" v-if="!threadData?.data?.thread_count">
59+
<div class="centered-text" v-if="!threadData?.data?.board?.thread_count">
6060
<h4>There are currently no threads in this board, start a new thread to get the conversation going!</h4>
6161
</div>
62-
<div class="thread-sort" v-if="threadData && threadData.data && threadData.data.thread_count">Sort <a href="" @click.prevent="setSortField()">{{ threadData.data.desc === true ? 'descending' : 'ascending' }}</a> by
62+
<div class="thread-sort" v-if="threadData && threadData.data && threadData.data.board.thread_count">Sort <a href="" @click.prevent="setSortField()">{{ threadData.data.desc === true ? 'descending' : 'ascending' }}</a> by
6363
<select v-model="sortField" name="select-thread-sort" class="select-clean" @change="setSortField()">
6464
<option v-for="item in sortItems" :key="item.value" :value="item.value">{{item.label}}</option>
6565
</select>
6666
</div>
6767

6868
<!-- Thread Listing -->
69-
<table class="threads-list" v-if="threadData && threadData.data && threadData.data.thread_count">
69+
<table class="threads-list" v-if="threadData && threadData.data && threadData.data.board.thread_count">
7070
<caption>Threads</caption>
7171
<thead>
7272
<tr>

0 commit comments

Comments
 (0)