diff --git a/src/javascript/JContent/CompareDialog/CompareDialog.jsx b/src/javascript/JContent/CompareDialog/CompareDialog.jsx index 2a57969b5..4eea37f23 100644 --- a/src/javascript/JContent/CompareDialog/CompareDialog.jsx +++ b/src/javascript/JContent/CompareDialog/CompareDialog.jsx @@ -14,6 +14,7 @@ import {useLocation} from 'react-router-dom'; import {decodeHashString} from './util'; import {DisplayAction} from '@jahia/ui-extender'; import {getButtonRenderer} from '../../utils/getButtonRenderer'; +import {triggerRefetchAll} from '../JContent.refetches'; const ButtonRendererNoLabel = getButtonRenderer({labelStyle: 'none', defaultButtonProps: {size: 'big'}}); const ButtonRendererShortLabel = getButtonRenderer({labelStyle: 'short', defaultButtonProps: {size: 'big'}}); @@ -54,7 +55,10 @@ const CompareDialog = () => { className={styles.actionItem} icon={} label={t('jcontent:label.contentManager.refresh')} - onClick={() => dispatch(compareStagingLiveReload())}/> + onClick={() => { + triggerRefetchAll(); + dispatch(compareStagingLiveReload()); + }}/>