diff --git a/packages/interface/src/components/primitive/Listbox.tsx b/packages/interface/src/components/primitive/Listbox.tsx
index 4116d086f..2fc900812 100644
--- a/packages/interface/src/components/primitive/Listbox.tsx
+++ b/packages/interface/src/components/primitive/Listbox.tsx
@@ -1,7 +1,7 @@
-import { Listbox as ListboxPrimitive, Transition } from '@headlessui/react';
+import { Listbox as ListboxPrimitive } from '@headlessui/react';
import { CheckIcon, SelectorIcon } from '@heroicons/react/solid';
import clsx from 'clsx';
-import React, { Fragment, useEffect, useState } from 'react';
+import React, { useEffect, useState } from 'react';
interface ListboxOption {
option: string;
@@ -25,9 +25,9 @@ export default function Listbox(props: { options: ListboxOption[]; className?: s
@@ -36,64 +36,57 @@ export default function Listbox(props: { options: ListboxOption[]; className?: s
) : (
Nothing selected...
)}
+
-
-
- {props.options.map((person, personIdx) => (
-
- `cursor-default select-none relative rounded m-1 py-2 pl-8 pr-4 dark:text-white focus:outline-none ${
- active
- ? 'text-primary-900 bg-primary-600'
- : 'text-gray-900 dark:hover:bg-gray-600 dark:hover:bg-opacity-20'
- }`
- }
- value={person}
- >
- {({ selected }) => (
- <>
-
- {person.option}
- {person.description && (
-
- {person.description}
-
- )}
-
- {selected ? (
-
-
+
+ {props.options.map((option, index) => (
+
+ `cursor-default select-none relative rounded m-1 py-2 pl-8 pr-4 dark:text-white focus:outline-none ${
+ active
+ ? 'text-primary-900 bg-primary-600'
+ : 'text-gray-900 dark:hover:bg-gray-600 dark:hover:bg-opacity-20'
+ }`
+ }
+ value={option}
+ >
+ {({ selected }) => (
+ <>
+
+ {option.option}
+ {option.description && (
+
+ {option.description}
- ) : null}
- >
- )}
-
- ))}
-
-
+ )}
+
+
+ {selected ? (
+
+
+
+ ) : null}
+ >
+ )}
+
+ ))}
+
>
diff --git a/packages/interface/src/screens/settings/GeneralSettings.tsx b/packages/interface/src/screens/settings/GeneralSettings.tsx
index 1e9dc9084..43c0487fc 100644
--- a/packages/interface/src/screens/settings/GeneralSettings.tsx
+++ b/packages/interface/src/screens/settings/GeneralSettings.tsx
@@ -46,11 +46,14 @@ export default function GeneralSettings() {
({
- key: volume.name,
- option: volume.name,
- description: volume.mount_point
- })) ?? []
+ volumes?.map((volume) => {
+ const name = volume.name && volume.name.length ? volume.name : volume.mount_point;
+ return {
+ key: name,
+ option: name,
+ description: volume.mount_point
+ };
+ }) ?? []
}
/>