Skip to content

Commit

Permalink
Merge pull request #28 from zestsoftware/maurits-fix-intl-undefined
Browse files Browse the repository at this point in the history
Fix Uncaught TypeError on view: "`intl` is undefined".
  • Loading branch information
fredvd authored Sep 17, 2024
2 parents cec76d2 + 5e4f580 commit 07f9b6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions news/27.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix Uncaught TypeError on view: "`intl` is undefined".
@mauritsvanrees
4 changes: 3 additions & 1 deletion src/components/View.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import React from 'react';
import config from '@plone/volto/registry';
import { useSelector } from 'react-redux';
import { flattenToAppURL } from '@plone/volto/helpers';
import { DetachedTextBlockEditor } from '@plone/volto-slate/blocks/Text/DetachedTextBlockEditor';
import { TextBlockView } from '@plone/volto-slate/blocks/Text';

const View = (props) => {
const { data, isEditMode, intl } = props;
const { data, isEditMode } = props;
const intl = useSelector((state) => state.intl);

const customSlateSettings = {
...props,
Expand Down

0 comments on commit 07f9b6f

Please sign in to comment.