diff options
| author | Marco Rodolfi <marco.rodolfi@tuta.io> | 2023-06-22 12:16:23 +0200 |
|---|---|---|
| committer | Marco Rodolfi <marco.rodolfi@tuta.io> | 2023-06-22 12:16:23 +0200 |
| commit | fc72ac5c6372fe08857ecf1b1a0904635d1b6c2d (patch) | |
| tree | 982b3ed3687e89e5e2a2fee64207cf50614f881d | |
| parent | f1576c7798a8cc14d5c93b784df1a67bb764d08c (diff) | |
| download | decky-loader-fc72ac5c6372fe08857ecf1b1a0904635d1b6c2d.tar.gz decky-loader-fc72ac5c6372fe08857ecf1b1a0904635d1b6c2d.zip | |
fix: cleanup code
| -rw-r--r-- | frontend/src/components/modals/filepicker/index.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/frontend/src/components/modals/filepicker/index.tsx b/frontend/src/components/modals/filepicker/index.tsx index 7f77b4ef..50931358 100644 --- a/frontend/src/components/modals/filepicker/index.tsx +++ b/frontend/src/components/modals/filepicker/index.tsx @@ -52,7 +52,6 @@ export interface File { export enum FileSelectionType { FILE, FOLDER, - NONE, } interface FileListing { @@ -141,7 +140,7 @@ const FilePicker: FunctionComponent<FilePickerProps> = ({ //How much files per page to show, default 1000 max = 1000, //Which picking option to select by default - fileSelType = FileSelectionType.NONE, + fileSelType = FileSelectionType.FOLDER, onSubmit, closeModal, }) => { @@ -342,7 +341,7 @@ const FilePicker: FunctionComponent<FilePickerProps> = ({ </Focusable> </DialogControlsSection> </DialogBody> - {!loading && error === FileErrorTypes.None && fileSelType !== FileSelectionType.NONE && ( + {!loading && error === FileErrorTypes.None && ( <DialogFooter> <DialogButton className="Primary" |
