Wire up ui to real blocks api data

This commit is contained in:
taehoon 2019-02-13 12:05:23 -05:00
parent a56d2dfeb1
commit a817cc7cb4
6 changed files with 40 additions and 3 deletions

View file

@ -48,7 +48,7 @@ const withLoadMore = (Component, fetchEntries, getEntries) => {
fetchEntries(this.$props, this.$store).then((newEntries) => {
this.error = false
this.loading = false
this.bottomedOut = newEntries.length === 0
this.bottomedOut = !newEntries || newEntries.length === 0
}).catch(() => {
this.error = true
this.loading = false