Skip to content

Commit

Permalink
Fix TS no-unsafe-optional-chaining errors
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas ONeil <[email protected]>
  • Loading branch information
loneil committed Jan 10, 2025
1 parent 96ab1cc commit ffbb082
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ const sidebarItems = [
},
];
const { logStreamUrl } = config?.frontend;
if (logStreamUrl) {
if (config?.frontend?.logStreamUrl) {
sidebarItems.push({
label: t('log.log'),
icon: 'pi pi-fw pi-file',
Expand Down
3 changes: 1 addition & 2 deletions services/tenant-ui/frontend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ async function loadApp() {
}

// Log Setup
const { logStreamUrl } = configStore?.config?.frontend;
if (!logStreamUrl) {
if (!configStore?.config?.frontend?.logStreamUrl) {
console.warn('Log not configured');
router.removeRoute('Log');
}
Expand Down

0 comments on commit ffbb082

Please sign in to comment.