diff --git a/gui/src/components/CodeToEditCard/AddFileCombobox.tsx b/gui/src/components/CodeToEditCard/AddFileCombobox.tsx index ed5a17f25..d096f90a2 100644 --- a/gui/src/components/CodeToEditCard/AddFileCombobox.tsx +++ b/gui/src/components/CodeToEditCard/AddFileCombobox.tsx @@ -53,9 +53,7 @@ export default function AddFileCombobox({ value={selectedFiles} onChange={(files) => { setSelectedFiles(files); - void onSelect( - files.map((file) => (file as ContextSubmenuItemWithProvider).id), - ); + void onSelect(files.map((file) => file.id)); buttonRef.current?.click(); }} >