[Dashboard bug]Fix userId prop in Explore view Save_Modal (#3857)

For userId, the attribute name in bootstrap data is user_id
This commit is contained in:
Grace Guo 2017-11-13 16:06:45 -08:00 committed by GitHub
parent 514f9452f3
commit 3f076b00cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -243,7 +243,7 @@ function mapStateToProps({ explore, saveModal }) {
datasource: explore.datasource,
slice: explore.slice,
can_overwrite: explore.can_overwrite,
userId: explore.userId,
userId: explore.user_id,
dashboards: saveModal.dashboards,
alert: saveModal.saveModalAlert,
};

View File

@ -24,7 +24,7 @@ describe('SaveModal', () => {
},
explore: {
can_overwrite: true,
userId: '1',
user_id: '1',
datasource: {},
slice: {
slice_id: 1,