Skip to content

Commit

Permalink
Merge pull request #1007 from nextcloud-libraries/fix/missing-default…
Browse files Browse the repository at this point in the history
…-type

[stable24] Bring back the default value for legacy file picker
  • Loading branch information
susnux committed Sep 20, 2023
2 parents 424c21e + c099c9c commit 9d36c42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/legacy.ts
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 9d36c42

Please sign in to comment.