From c099c9ccd797a11f8d3c17b0fe671d0561a3b8ab Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Wed, 20 Sep 2023 20:55:24 +0200 Subject: [PATCH] fix(FilePicker): Legacy filepicker is broken because the default type was unset Signed-off-by: Ferdinand Thiessen --- lib/legacy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/legacy.ts b/lib/legacy.ts index 51a8b53d..8a7a5954 100644 --- a/lib/legacy.ts +++ b/lib/legacy.ts @@ -89,7 +89,7 @@ const spawnDialog = (dialog: Component | AsyncComponent, props: any, onClose: () * @param {Object} [options] additonal options that need to be set * @param {Function} [options.filter] filter function for advanced filtering */ -export async function filepicker(title: string, callback: (s: string | string[], type: FilePickerType) => void, multiselect = false, mimetype?: string | string[], _modal?: boolean, type?: FilePickerType, path?: string, options?: any) { +export async function filepicker(title: string, callback: (s: string | string[], type: FilePickerType) => void, multiselect = false, mimetype?: string | string[], _modal?: boolean, type: FilePickerType = FilePickerType.Choose, path?: string, options?: any) { /** * Create legacy callback wrapper to support old filepicker syntax