accompanying course: fetch users and suggested referrers only for app, not for banner

This commit is contained in:
nobohan
2022-01-31 13:32:34 +01:00
parent 1967fc4bed
commit fefe208260
2 changed files with 8 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ const root = window.vueRootComponent;
* Load all App component, for AccompanyingCourse edition page
*/
if (root === 'app') {
initPromise.then(store => {
initPromise(root).then(store => {
const i18n = _createI18n(appMessages);
@@ -37,7 +37,7 @@ if (root === 'app') {
* Load only Banner sub-component, for all others AccompanyingCourse page
*/
if (root === 'banner') {
initPromise.then(store => {
initPromise(root).then(store => {
const i18n = _createI18n(appMessages);