Skip to content

Commit

Permalink
Iterate
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed Jun 20, 2024
1 parent 1726ab8 commit 7182ed0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ export default function TabContainer() {
fetchDataForNewRoute(id);
}, [id, fetchDataForNewRoute]);


const renderTabContent = useCallback(() => {
switch (tabKey) {
case TabKey.Chat:
Expand Down
5 changes: 3 additions & 2 deletions web-app/src/components/site/indexes/AskIndexes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const AskIndexes: FC<AskIndexesProps> = ({ sources }) => {
const bottomRef = useRef<null | HTMLDivElement>(null);

const fetchDefaultQuestions = useCallback(async (): Promise<void> => {
if (!apiReady || isConversation || !id) return;
if (!apiReady || !id) return;
try {
const questions = await api!.getDefaultQuestionsOfIndex([id]);
setDefaultQuestions(questions);
Expand Down Expand Up @@ -432,7 +432,8 @@ const AskIndexes: FC<AskIndexesProps> = ({ sources }) => {
<EmptyScreen
contextMessage={getChatContextMessage()}
setInput={setInput}
defaultQuestions={defaultQuestions} />
defaultQuestions={defaultQuestions}
/>
</Flex>
)}
</Col>
Expand Down

0 comments on commit 7182ed0

Please sign in to comment.