diff --git a/web/client/components/misc/AutocompleteCombobox.jsx b/web/client/components/misc/AutocompleteCombobox.jsx index eeaefc23bc..d6fa9608f9 100644 --- a/web/client/components/misc/AutocompleteCombobox.jsx +++ b/web/client/components/misc/AutocompleteCombobox.jsx @@ -61,7 +61,6 @@ const addStateHandlers = compose( withStateHandlers((props) => ({ delayDebounce: 0, performFetch: false, - disabled: false, open: false, openOnFocus: props.openOnFocus, disabled: props.disabled, diff --git a/web/client/epics/featuregrid.js b/web/client/epics/featuregrid.js index 9ecce49e61..f7b0f79483 100644 --- a/web/client/epics/featuregrid.js +++ b/web/client/epics/featuregrid.js @@ -172,7 +172,6 @@ import {dockPanelsSelector} from "../selectors/maplayout"; import {shutdownToolOnAnotherToolDrawing} from "../utils/ControlUtils"; import {mapTypeSelector} from "../selectors/maptype"; import { MapLibraries } from '../utils/MapTypeUtils'; -import { userSelector } from '../selectors/security'; const setupDrawSupport = (state, original) => { const defaultFeatureProj = getDefaultFeatureProjection(); diff --git a/web/client/plugins/tocitemssettings/tabs/Fields.jsx b/web/client/plugins/tocitemssettings/tabs/Fields.jsx index c09b06f53f..1e4ecf578b 100644 --- a/web/client/plugins/tocitemssettings/tabs/Fields.jsx +++ b/web/client/plugins/tocitemssettings/tabs/Fields.jsx @@ -22,14 +22,14 @@ export default connect(createStructuredSelector({ const updateFields = (fields) => { // insert fields value from selected user prop source fields?.forEach?.((field) => { - if(field.source) { - field.value = get(userInfos,field.source) || find(userInfos.attribute, ["name", field.source])?.value + if (field.source) { + field.value = get(userInfos, field.source) || find(userInfos.attribute, ["name", field.source])?.value; field.editable = false; - } else if(!field.source && field.value) { + } else if (!field.source && field.value) { field.value = null; field.editable = null; } - }) + }); // update state updateLayerProperties(layer.id, {fields}); };