Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
paulclindo committed Jan 9, 2025
1 parent cd87e8b commit 96361a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ const ConversationHeaderWithInboxId = () => {
const hasFiles = isSuccess && jobScope.vector_fs_items.length > 0;

const filesAndFoldersCount = isSuccess
? jobScope.vector_fs_folders.length + jobScope.vector_fs_items.length
? jobScope.vector_fs_folders.length +
jobScope.vector_fs_items.length +
(hasFilesJobFolder ? 1 : 0)
: 0;
const hasConversationContext = hasFolders || hasFiles;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export const SetJobScopeDrawer = () => {
}
}, [isSetJobScopeOpen]);

console.log(selectedKeys, 'selectedKeys');
return (
<Sheet onOpenChange={setSetJobScopeOpen} open={isSetJobScopeOpen}>
<SheetContent>
Expand Down Expand Up @@ -186,7 +187,7 @@ export const SetJobScopeDrawer = () => {
size="sm"
type="button"
>
{t('common.done')}
{inboxId ? t('common.saveChanges') : t('common.done')}
</Button>
</SheetFooter>
</SheetContent>
Expand Down

0 comments on commit 96361a8

Please sign in to comment.