Skip to content

Commit a044e9e

Browse files
added disable condition
1 parent e7cab4d commit a044e9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frontend/src/pages/chat/Chat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ const Chat = ({ type = ChatType.Browse }: Props) => {
973973
className={styles.generateDocumentIcon}
974974
iconProps={{ iconName: 'Generate' }}
975975
onClick={generateDocument} //Update for Document Generation
976-
disabled={draftDocument === undefined || disabledButton()}
976+
disabled={draftDocument === undefined || !draftDocument?.sections?.length || disabledButton()}
977977
aria-label="generate draft"
978978
title="Generate Draft"
979979
/>

0 commit comments

Comments
 (0)