Skip to content

Commit 46bea7d

Browse files
committed
front: keep operational points whose name contains the query in stdcm form
Signed-off-by: Clara Ni <[email protected]>
1 parent ffb359d commit 46bea7d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

front/src/applications/stdcm/components/StdcmForm/StdcmOperationalPoint.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ const StdcmOperationalPoint = ({ location, pathStepId, disabled }: StdcmOperatio
6767
.filter(
6868
(op) =>
6969
normalized(op.name).startsWith(normalized(searchTerm)) ||
70+
normalized(op.name).includes(normalized(searchTerm)) ||
7071
op.trigram === searchTerm.toUpperCase()
7172
)
7273
.reduce<Option[]>((acc, p) => {

0 commit comments

Comments
 (0)