In the below given context where I have es->en as language pair and have translation in progress for es->en and en->ig., clicking on the en->ig items will throw js error.
JS error:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'getSectionByTitle')
at startTranslation (CXTranslationWork.vue:114:47)
startTranslation @ CXTranslationWork.vue:114
await in startTranslation (async)
onClick @ CXTranslationWork.vue:132
_createElementBlock.onClick._cache.<computed>._cache.<computed> @ CXTranslationWork.vue:2
callWithErrorHandling @ runtime-core.esm-bundler.js:155
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:164
invoker @ runtime-dom.esm-bundler.js:369When I looked at the mediawiki/pages state object, pages corresponding to the titles(for en->ig) present but keyed with 'es' as language. Hence this getter method in mediawiki store fails to get the page.
getPage: (state) => (language, title) =>
state.pages.find(
(page) =>
page.language === language &&
(page.title === title || (page.alias !== null && page.alias === title))
),