Skip to content

Commit

Permalink
read config for home
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Dec 6, 2023
1 parent dd7670c commit e58691b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/mini/uicallbacks.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,9 @@ function toggleSideMenu(opt) {
* @param {Object} data
*/
async function goHome(data) {
let homeLinks = await $CAMIC.store.getConfigByName("custom_home");
if (homeLinks){
let homeLinksConfig = await $CAMIC.store.getConfigByName("custom_home");
if (homeLinksConfig){
homeLinks = homeLinksConfig[0].configuration
if($D.params.data.study in homeLinks){
redirect(homeLinks[$D.params.data.study], `Study Home Page`, 0);
} else {
Expand Down

0 comments on commit e58691b

Please sign in to comment.