diff --git a/src/components/search/search.js b/src/components/search/search.js index fcb5466d..62c61a22 100644 --- a/src/components/search/search.js +++ b/src/components/search/search.js @@ -34,7 +34,7 @@ const Search = { statuses: [], media: [], hashtags: [], - currenResultTab: 'statuses', + currentResultTab: 'statuses', preferredTab : 'statuses', statusesOffset: 0, @@ -120,7 +120,7 @@ const Search = { ? [searchType] : ['statuses', 'media', 'accounts', 'hashtags'] - let oldStasusesLength = this.statuses.length + let oldStatusesLength = this.statuses.length let oldMediaLength = this.media.length let skipMediaSearch = !this.canSearchMediaPosts @@ -162,7 +162,7 @@ const Search = { this.hashtags = this.hashtags.concat(data.hashtags) if (isNewSearch) { - this.currenResultTab = this.getActiveTab() + this.currentResultTab = this.getActiveTab() if (searchType === 'statuses' && data.statuses.length === 0) { // safe to assume that there are no media posts skipMediaSearch = true @@ -174,7 +174,7 @@ const Search = { // Offset from whatever we already have this.statusesOffset = this.statuses.length // Because the amount of new statuses can actually be zero, compare to old length instead - this.lastStatusFetchCount = this.statuses.length - oldStasusesLength + this.lastStatusFetchCount = this.statuses.length - oldStatusesLength } if (searchType === 'media') { this.mediaOffset = this.media.length @@ -202,7 +202,7 @@ const Search = { return ` (${length})` }, onResultTabSwitch (key) { - this.currenResultTab = key + this.currentResultTab = key this.preferredTab = key this.loading = false }, diff --git a/src/components/search/search.vue b/src/components/search/search.vue index 99b86e3b..3b0477a1 100644 --- a/src/components/search/search.vue +++ b/src/components/search/search.vue @@ -48,7 +48,7 @@
-
+
-
+
-
+
-
+