Skip to content

Commit

Permalink
fix default selection tool
Browse files Browse the repository at this point in the history
  • Loading branch information
LPoin committed Dec 31, 2024
1 parent 1504411 commit b83c443
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/extension/plugins/cadastrapp/toolbar/SelectionTools.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { useEffect } from 'react';
import { SELECTION_TYPES } from '../../../constants';
import { toggleSelectionTool } from '../../../actions/cadastrapp';
import { currentSelectionToolSelector } from '../../../selectors/cadastrapp';
Expand Down Expand Up @@ -42,7 +42,8 @@ const BUTTONS_SETTINGS = {
* Implement the selection tools.
* They are mutually exclusive and allow to start a selection on map.
*/
function SelectionTools({ foncier = true, currentTool="POINT", onClick = () => {} }) {
function SelectionTools({ foncier = true, currentTool, onClick = () => {} }) {
useEffect(() => onClick("POINT"), []);
return <>
{
Object.keys(SELECTION_TYPES)
Expand Down

0 comments on commit b83c443

Please sign in to comment.