Skip to content

Commit

Permalink
add css to the data object to be saved (#2188)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alanna Scott authored Feb 16, 2017
1 parent 615d8f1 commit 3b023e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Controls extends React.PureComponent {
constructor(props) {
super(props);
this.state = {
css: props.dashboard.css,
css: props.dashboard.css || '',
cssTemplates: [],
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class SaveModal extends React.PureComponent {
saveDashboardRequest(data, url, saveType) {
const dashboard = this.props.dashboard;
const saveModal = this.modal;
Object.assign(data, { css: this.props.css });
$.ajax({
type: 'POST',
url,
Expand Down

0 comments on commit 3b023e5

Please sign in to comment.