Skip to content

Commit

Permalink
[Dashboard bug]Fix userId prop in Explore view Save_Modal (apache#3857)
Browse files Browse the repository at this point in the history
For userId, the attribute name in bootstrap data is user_id
  • Loading branch information
Grace Guo authored and michellethomas committed May 23, 2018
1 parent 34196ae commit 0579b0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('SaveModal', () => {
},
explore: {
can_overwrite: true,
userId: '1',
user_id: '1',
datasource: {},
slice: {
slice_id: 1,
Expand Down

0 comments on commit 0579b0d

Please sign in to comment.