Skip to content

Commit

Permalink
front: editor: hide the error box when there is no error
Browse files Browse the repository at this point in the history
  • Loading branch information
blemoineovh committed Jan 19, 2024
1 parent 5a4c741 commit b874d01
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions front/src/applications/editor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -379,12 +379,14 @@ const Editor = () => {
})}
</div>

{mapRef.current && editorState.editorLayers.has('errors') && (
<div className="error-box">
<InfraErrorMapControl mapRef={mapRef.current} switchTool={switchTool} />
<InfraErrorCorrector />
</div>
)}
{mapRef.current &&
editorState.editorLayers.has('errors') &&
editorState.issues.total && (
<div className="error-box">
<InfraErrorMapControl mapRef={mapRef.current} switchTool={switchTool} />
<InfraErrorCorrector />
</div>
)}
</div>
<div className="messages-bar border-left">
<div className="px-1">
Expand Down

0 comments on commit b874d01

Please sign in to comment.