Requested changes

This commit is contained in:
Daniel Hougaard
2024-06-21 18:17:16 +02:00
parent c735beea32
commit 7ab5c02000
3 changed files with 8 additions and 26 deletions

View File

@@ -226,15 +226,15 @@ export const AdminDashboardPage = () => {
dropdownContainerClassName="bg-mineshaft-800"
defaultValue={field.value ?? " "}
onValueChange={(e) => {
if (e === " ") {
onChange(null);
} else {
onChange(e);
if (e === "EMPTY") {
onChange("");
return;
}
onChange(e);
}}
{...field}
>
<SelectItem value=" ">Select organization...</SelectItem>
<SelectItem value="EMPTY">Select organization...</SelectItem>
{organizations.data?.map((org) => (
<SelectItem key={org.id} value={org.id}>
{org.name}