File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
src/components/dialogs/filter/criteria-based Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,15 @@ import { useWatch } from 'react-hook-form';
11
11
import { FormattedMessage } from 'react-intl' ;
12
12
import { FilterType } from '../../../../utils/elementType' ;
13
13
import {
14
+ Battery ,
15
+ Generator ,
14
16
Hvdc ,
15
17
Line ,
16
18
Load ,
19
+ ShuntCompensator ,
17
20
Substation ,
21
+ TwoWindingTransfo ,
22
+ VoltageLevel ,
18
23
} from '../../../../utils/equipment-types' ;
19
24
import { areArrayElementsUnique } from '../../../../utils/functions' ;
20
25
import { EQUIPMENT_TYPE , FILTER_TYPE } from '../../../utils/field-constants' ;
@@ -154,7 +159,13 @@ function FilterProperties() {
154
159
const displayEquipmentProperties = useMemo ( ( ) => {
155
160
return (
156
161
watchEquipmentType === Substation . type ||
157
- watchEquipmentType === Load . type
162
+ watchEquipmentType === Load . type ||
163
+ watchEquipmentType === Generator . type ||
164
+ watchEquipmentType === Line . type ||
165
+ watchEquipmentType === TwoWindingTransfo . type ||
166
+ watchEquipmentType === Battery . type ||
167
+ watchEquipmentType === ShuntCompensator . type ||
168
+ watchEquipmentType === VoltageLevel . type
158
169
) ;
159
170
} , [ watchEquipmentType ] ) ;
160
171
You can’t perform that action at this time.
0 commit comments