|
|
@@ -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)
|