diff --git a/electron/handlers/native.ts b/electron/handlers/native.ts index 79fa994bfa..19a473e730 100644 --- a/electron/handlers/native.ts +++ b/electron/handlers/native.ts @@ -93,12 +93,12 @@ export function handleAppIPCs() { const { canceled, filePaths } = await dialog.showOpenDialog(mainWindow, { title: 'Select model files', buttonLabel: 'Select', - properties: ['openFile', 'multiSelections'], + properties: ['openFile', 'openDirectory', 'multiSelections'], }) if (canceled) { return - } else { - return filePaths } + + return filePaths }) } diff --git a/web/containers/ItemCardSidebar/index.tsx b/web/containers/ItemCardSidebar/index.tsx deleted file mode 100644 index 627d7f45dc..0000000000 --- a/web/containers/ItemCardSidebar/index.tsx +++ /dev/null @@ -1,29 +0,0 @@ -type Props = { - title: string - description?: string - disabled?: boolean - onChange?: (text?: string) => void -} - -export default function ItemCardSidebar({ - description, - title, - disabled, - onChange, -}: Props) { - return ( -
{editingModel.name}