Pārlūkot izejas kodu

:recycle: turning off default sort for exhibitions

tags/0.9.0
j 4 gadus atpakaļ
vecāks
revīzija
767ced161f
1 mainītis faili ar 0 papildinājumiem un 7 dzēšanām
  1. 0
    7
      vue-theme/src/store/modules/exhibition.js

+ 0
- 7
vue-theme/src/store/modules/exhibition.js Parādīt failu

@@ -16,13 +16,6 @@ const actions = {
16 16
     getAllExhibitions({ commit }, sortType) {
17 17
         commit('CLEAR_EXHIBITIONS')
18 18
         commit('EXHIBITIONS_LOADED', false)
19
-
20
-        // Forcing sort because 90% of the time
21
-        // we only care about current and upcoming
22
-        if (sortType == 'exhibitions') {
23
-            sortType = sortTypes.currentAndUpcoming
24
-        }
25
-
26 19
         return api.getByType('exhibitions', sortType, exhibitions => {
27 20
             commit('STORE_FETCHED_EXHIBITIONS', { exhibitions })
28 21
             commit('EXHIBITIONS_LOADED', true)

Notiek ielāde…
Atcelt
Saglabāt