Unverified Commit 517b1aba authored by Derek's avatar Derek Committed by GitHub
Browse files

frontend: sort Resolver select options (#1240)

parent ea20dbf2
No related merge requests found
Showing with 2 additions and 1 deletion
+2 -1
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";
......@@ -72,7 +73,7 @@ const OptionField = (
});
}, []);
const options = field.metadata.optionField.options.map(option => {
const options = _.sortBy(field.metadata.optionField.options, o => o.displayName).map(option => {
return { label: option.displayName, value: option.stringValue };
});
const updateSelectedOption = (value: string) => {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment