Skip to content

Commit

Permalink
Fix Uncaught TypeError on view: "intl is undefined".
Browse files Browse the repository at this point in the history
Fixes issue #27.
  • Loading branch information
mauritsvanrees committed Sep 16, 2024
1 parent cec76d2 commit 5e4f580
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 5e4f580

Please sign in to comment.