Skip to content

Commit

Permalink
change tool btn, home link check
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Dec 12, 2023
1 parent b091258 commit cc083a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions apps/mini/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -500,10 +500,10 @@ async function initUIcomponents() {
subTools: subToolsOpt,
mainTools: [
{
icon: 'apps',
title: 'Applications',
icon: 'view_list',
title: 'Layers',
type: 'check',
value: 'apps',
value: 'layers',
}
]
});
Expand Down
2 changes: 1 addition & 1 deletion apps/mini/uicallbacks.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ function toggleSideMenu(opt) {
*/
async function goHome(data) {
let homeLinksConfig = await $CAMIC.store.getConfigByName("custom_home");
if (homeLinksConfig){
if (homeLinksConfig && homeLinksConfig.length){
homeLinks = homeLinksConfig[0].configuration[0]
if($D.params.data.study in homeLinks){
window.location = homeLinks[$D.params.data.study]
Expand Down

0 comments on commit cc083a8

Please sign in to comment.