diff --git a/src/main/resources/react4xp/_entries/KeyFigure.jsx b/src/main/resources/react4xp/_entries/KeyFigure.jsx index 9c3228f31..2d1f43afb 100644 --- a/src/main/resources/react4xp/_entries/KeyFigure.jsx +++ b/src/main/resources/react4xp/_entries/KeyFigure.jsx @@ -46,33 +46,25 @@ class KeyFigures extends React.Component { if (this.props.showPreviewDraft) { if (this.state.fetchUnPublished) { return keyFigures.map((keyFigure, i) => { - if (this.props.draftExist && keyFigure.number) { - return ( - + return ( + + {this.props.draftExist && keyFigure.number ? ( Tallet i nøkkeltallet nedenfor er upublisert - - ) - } else { - return ( - + ) : ( Finnes ikke upubliserte tall for dette nøkkeltallet - - ) - } + )} + + ) }) } } - return } createRows() {