We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7cab4d commit a044e9eCopy full SHA for a044e9e
1 file changed
src/frontend/src/pages/chat/Chat.tsx
@@ -973,7 +973,7 @@ const Chat = ({ type = ChatType.Browse }: Props) => {
973
className={styles.generateDocumentIcon}
974
iconProps={{ iconName: 'Generate' }}
975
onClick={generateDocument} //Update for Document Generation
976
- disabled={draftDocument === undefined || disabledButton()}
+ disabled={draftDocument === undefined || !draftDocument?.sections?.length || disabledButton()}
977
aria-label="generate draft"
978
title="Generate Draft"
979
/>
0 commit comments