Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Clutch
Commits
30e5dad3
Unverified
Commit
30e5dad3
authored
4 years ago
by
Derek
Committed by
GitHub
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Revert "frontend: sort Resolver select options (#1240)" (#1248)
This reverts commit
517b1aba
.
parent
d8a1f251
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/packages/core/src/Resolver/hydrator.tsx
+1
-2
frontend/packages/core/src/Resolver/hydrator.tsx
with
1 addition
and
2 deletions
+1
-2
frontend/packages/core/src/Resolver/hydrator.tsx
+
1
-
2
View file @
30e5dad3
import
React
from
"
react
"
;
import
type
{
clutch
}
from
"
@clutch-sh/api
"
;
import
_
from
"
lodash
"
;
import
Select
from
"
../Input/select
"
;
import
TextField
from
"
../Input/text-field
"
;
...
...
@@ -73,7 +72,7 @@ const OptionField = (
});
},
[]);
const
options
=
_
.
sortBy
(
field
.
metadata
.
optionField
.
options
,
o
=>
o
.
displayName
)
.
map
(
option
=>
{
const
options
=
field
.
metadata
.
optionField
.
options
.
map
(
option
=>
{
return
{
label
:
option
.
displayName
,
value
:
option
.
stringValue
};
});
const
updateSelectedOption
=
(
value
:
string
)
=>
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help