Commit d6e27b8 1 parent 80b05e0 commit d6e27b8 Copy full SHA for d6e27b8
File tree 1 file changed +21
-19
lines changed
front/src/applications/editor/tools/rangeEdition
1 file changed +21
-19
lines changed Original file line number Diff line number Diff line change @@ -151,25 +151,27 @@ export const TrackRangesList: FC = () => {
151
151
</ div >
152
152
< div className = "flex-grow-1 flex-shrink-1" >
153
153
< EntitySumUp entity = { trackState . track } />
154
- < div >
155
- < select
156
- id = "filterLevel"
157
- className = "form-control"
158
- value = { range . applicable_directions }
159
- onChange = { ( e ) => {
160
- const newEntity = cloneDeep ( entity ) ;
161
- const newRange = ( newEntity . properties . track_ranges || [ ] ) [ i ] ;
162
- newRange . applicable_directions = e . target . value as ApplicableDirection ;
163
- setState ( { entity : newEntity , hoveredItem : null } ) ;
164
- } }
165
- >
166
- { APPLICABLE_DIRECTIONS . map ( ( direction ) => (
167
- < option key = { direction } value = { direction } >
168
- { t ( `Editor.directions.${ direction } ` ) }
169
- </ option >
170
- ) ) }
171
- </ select >
172
- </ div >
154
+ { entity . objType !== 'Catenary' && (
155
+ < div >
156
+ < select
157
+ id = "filterLevel"
158
+ className = "form-control"
159
+ value = { range . applicable_directions }
160
+ onChange = { ( e ) => {
161
+ const newEntity = cloneDeep ( entity ) ;
162
+ const newRange = ( newEntity . properties . track_ranges || [ ] ) [ i ] ;
163
+ newRange . applicable_directions = e . target . value as ApplicableDirection ;
164
+ setState ( { entity : newEntity , hoveredItem : null } ) ;
165
+ } }
166
+ >
167
+ { APPLICABLE_DIRECTIONS . map ( ( direction ) => (
168
+ < option key = { direction } value = { direction } >
169
+ { t ( `Editor.directions.${ direction } ` ) }
170
+ </ option >
171
+ ) ) }
172
+ </ select >
173
+ </ div >
174
+ ) }
173
175
</ div >
174
176
</ >
175
177
) }
You can’t perform that action at this time.
0 commit comments