Skip to content

Commit

Permalink
Fix missing curUserId from SliderAdder.jsx (#2705)
Browse files Browse the repository at this point in the history
  • Loading branch information
songyanho authored and mistercrunch committed May 2, 2017
1 parent 1887b5e commit 59a6f44
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions superset/assets/javascripts/dashboard/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,11 @@ function initDashboardView(dashboard) {
$('[data-toggle="tooltip"]').tooltip({ container: 'body' });
}

export function dashboardContainer(dashboard, datasources) {
export function dashboardContainer(dashboard, datasources, userid) {
return Object.assign({}, dashboard, {
type: 'dashboard',
filters: {},
curUserId: userid,
init() {
this.sliceObjects = [];
dashboard.slices.forEach((data) => {
Expand Down Expand Up @@ -340,7 +341,7 @@ $(document).ready(() => {
const dashboardData = $('.dashboard').data('bootstrap');

const state = getInitialState(dashboardData);
const dashboard = dashboardContainer(state.dashboard, state.datasources);
const dashboard = dashboardContainer(state.dashboard, state.datasources, state.user_id);
initDashboardView(dashboard);
dashboard.init();
});

0 comments on commit 59a6f44

Please sign in to comment.