-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix report charts #2239
Fix report charts #2239
Conversation
@@ -90,7 +90,7 @@ export const Modal: React.FC<IModalProps> = ({ | |||
<Button | |||
variant={type === 'delete' ? 'error' : 'primary'} | |||
onClick={onConfirm} | |||
disabled={isSubmitting && !enableConfirm} | |||
disabled={isSubmitting || !enableConfirm} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If either then disable. The way this was implemented didn't make sense. I hope where ever else it's used it doesn't break.
@@ -156,6 +156,9 @@ export const ReportEditContentForm = React.forwardRef< | |||
}} | |||
/> | |||
</Show> | |||
<Show visible={isSubmitting}> | |||
<Loading /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The regenerate process takes a bit.
setData(convertToChart(chart, showReportData ? reportContent : testData, values.sections)); | ||
}, [chart, reportContent, showReportData, testData, values.sections]); | ||
const sectionContent = | ||
section.filterId || section.folderId || section.linkedReportId |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only include content in the section when appropriate.
Fixed issue with charts that should only display the content in their own section.
Fixed issue with regenerate report and charts.
Fixed modal disable confirm button.