Skip to content

Commit

Permalink
logical check for show_history_button
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Seabock (Centific Technologies Inc) committed Jul 10, 2024
1 parent ed69379 commit 85c00fd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/src/pages/layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const Layout = () => {
</Link>
</Stack>
<Stack horizontal tokens={{ childrenGap: 4 }} className={styles.shareButtonContainer}>
{appStateContext?.state.isCosmosDBAvailable?.status !== CosmosDBStatus.NotConfigured && (
{appStateContext?.state.isCosmosDBAvailable?.status !== CosmosDBStatus.NotConfigured && ui?.show_chat_history_button !== false && (
<HistoryButton
onClick={handleHistoryClick}
text={appStateContext?.state?.isChatHistoryOpen ? hideHistoryLabel : showHistoryLabel}
Expand Down
Loading

0 comments on commit 85c00fd

Please sign in to comment.