Skip to content

Commit

Permalink
Original implementation of #3617
Browse files Browse the repository at this point in the history
commit 2b5fcac
  • Loading branch information
Zasa-san committed May 31, 2021
1 parent ca0f0aa commit 63815fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/react/Pages/components/PageViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ class PageViewer extends Component {
const { page, itemLists, datasets } = this.props;
const lists = itemLists.toJS();
const originalText = page.getIn(['metadata', 'content']) || '';
const scriptCode = page.getIn(['metadata', 'script']) || '';
let scriptCode = page.getIn(['metadata', 'script']) || '';
scriptCode = `var datasets=${JSON.stringify(datasets)};\r\n${scriptCode}`;

return (
<div className="row">
Expand Down

0 comments on commit 63815fc

Please sign in to comment.