Skip to content

Commit

Permalink
Fix wrong ui language fetching on collections.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbfsdev committed Oct 23, 2023
1 parent 997debd commit 2ddde9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sagas/preparePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function* fetchCollectionsList(action) {

const uiLang = yield select(state => settings.getUILang(state.settings));
const contentLanguages = yield select(state => settings.getContentLanguages(state.settings));
const { data } = yield call(Api.collections, { ...DEF_PARAMS, ui_lang: uiLang, content_languages: contentLanguages, ...params });
const { data } = yield call(Api.collections, { ...DEF_PARAMS, ui_language: uiLang, content_languages: contentLanguages, ...params });

if (Array.isArray(data.collections)) {
yield put(mdbActions.receiveCollections(data.collections));
Expand Down

0 comments on commit 2ddde9a

Please sign in to comment.