|
|
@@ -16,6 +16,13 @@ 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
|
+
|
|
19
|
26
|
return api.getByType('exhibitions', sortType, exhibitions => {
|
|
20
|
27
|
commit('STORE_FETCHED_EXHIBITIONS', { exhibitions })
|
|
21
|
28
|
commit('EXHIBITIONS_LOADED', true)
|