Skip to content

Commit

Permalink
fix(FilePicker): Legacy filepicker is broken because the default type…
Browse files Browse the repository at this point in the history
… was unset

Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Sep 20, 2023
1 parent 7d9d29e commit c099c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/legacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c099c9c

Please sign in to comment.