mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
Fix Chart Error Message Display (#3287)
This commit is contained in:
committed by
Maxime Beauchemin
parent
9a4e4d0443
commit
025ef5a0f1
@@ -325,9 +325,9 @@ ChartContainer.propTypes = propTypes;
|
||||
function mapStateToProps({ explore, chart }) {
|
||||
const formData = getFormDataFromControls(explore.controls);
|
||||
return {
|
||||
alert: explore.chartAlert,
|
||||
can_overwrite: explore.can_overwrite,
|
||||
can_download: explore.can_download,
|
||||
alert: chart.chartAlert,
|
||||
can_overwrite: !!explore.can_overwrite,
|
||||
can_download: !!explore.can_download,
|
||||
datasource: explore.datasource,
|
||||
column_formats: explore.datasource ? explore.datasource.column_formats : null,
|
||||
containerId: explore.slice ? `slice-container-${explore.slice.slice_id}` : 'slice-container',
|
||||
|
||||
@@ -238,7 +238,7 @@ function mapStateToProps({ explore, saveModal }) {
|
||||
can_overwrite: explore.can_overwrite,
|
||||
user_id: explore.user_id,
|
||||
dashboards: saveModal.dashboards,
|
||||
alert: explore.saveModalAlert,
|
||||
alert: saveModal.saveModalAlert,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user