fix the bug with directory picker selecting the current directory

This commit is contained in:
jelveh committed 2025-08-04 22:18:22 -07:00
1 parent b6fcb78f6e
commit 59dade2736
1 file changed
+1 -1
+1 -1
View File
@@ -824,7 +824,7 @@ async function UIWindow(options) {
// No item selected, return current directory
// ------------------------------------------------
if(selected_els.length === 0){
selected_dirs = await puter.fs.sign(options.initiating_app_uuid, {uid: $(el_window).attr('data-uid'), action: 'write'})
selected_dirs = await puter.fs.sign(options.initiating_app_uuid, {uid: $(el_window).attr('data-uid'), action: 'write', path: $(el_window).attr('data-path')})
selected_dirs = selected_dirs.items;
}