Fix Chart Error Message Display (#3287)

This commit is contained in:
Grace Guo
2017-08-14 12:24:35 -07:00
committed by Maxime Beauchemin
parent 9a4e4d0443
commit 025ef5a0f1
7 changed files with 17 additions and 16 deletions

View File

@@ -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',

View File

@@ -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,
};
}