diff --git a/packages/volto-slate-glossary/src/components/Tooltips.jsx b/packages/volto-slate-glossary/src/components/Tooltips.jsx index bc7910c..e87d316 100644 --- a/packages/volto-slate-glossary/src/components/Tooltips.jsx +++ b/packages/volto-slate-glossary/src/components/Tooltips.jsx @@ -1,3 +1,4 @@ +import React from 'react'; import { useEffect } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import jwtDecode from 'jwt-decode'; @@ -60,7 +61,14 @@ const Tooltips = (props) => { // Store texts and pathname in atom setTooltippedTexts({ pathname: pathname, texts: texts }); } - }, [blocks, blocks_layout, glossaryterms, pathname, setTooltippedTexts]); + }, [ + blocks, + blocks_layout, + description, + glossaryterms, + pathname, + setTooltippedTexts, + ]); return
; }; @@ -184,7 +192,9 @@ export const enhanceTextWithTooltips = (text, remainingGlossaryterms) => { definition = `