Skip to content

Commit c3a63cc

Browse files
committed
front: do not display errors layer by default in the editor
Signed-off-by: Clara Ni <[email protected]>
1 parent b3a6f01 commit c3a63cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

front/src/common/Map/Buttons/ButtonMapInfraErrors.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface ButtonMapInfraErrorsProps {
1515
const ButtonMapInfraErrors = ({ editorState }: ButtonMapInfraErrorsProps) => {
1616
const dispatch = useAppDispatch();
1717
const { t } = useTranslation('translation');
18-
const [isActive, setIsActive] = useState(true);
18+
const [isActive, setIsActive] = useState(false);
1919

2020
const toggleInfraErrors = () => {
2121
const newSet = new Set<Layer>(editorState.editorLayers);

front/src/reducers/editor/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const editorInitialState: EditorState = {
2222
// Definition of entities (json schema)
2323
editorSchema: [],
2424
// ID of selected layers on which we are working
25-
editorLayers: new Set(['track_sections', 'errors']),
25+
editorLayers: new Set(['track_sections']),
2626
// Editor issue management
2727
issues: {
2828
total: 0,

0 commit comments

Comments
 (0)