Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
const title = this.props.page.title;
const contentRaw = this.props.page.content;
const content = safeLoadFront(contentRaw);
const bodyContent = content.__content;
const breadcrumb = [
<li>
<span>{title}</span>
</li>
];
const hasEditPermissions = this.props.hasEditPermissions;
const save = field => {
return newValue => {
const { title, content } = this.props.page;
const page = { title, content };
page[field] = newValue;
this.props.updateStaticPage(