I am upgrading the deck app to vue3, and I noticed that the filepicker did not work after upgrading to v7.0.0-rc.1
Whenever filePicker.pick() is called it throws the:
reject(new FilePickerClosed('FilePicker: No nodes selected'))
error, even though files where selected
I investigated it and I think it is caused by this line:
|
const [nodes] = await spawnDialog(FilePickerVue, { |
because it gets the nodes out of the array like this: [nodes] =... and then checks if the node is an array instantly after, but nodes is now actually just one node and never an array.
I am upgrading the deck app to vue3, and I noticed that the filepicker did not work after upgrading to v7.0.0-rc.1
Whenever filePicker.pick() is called it throws the:
reject(new FilePickerClosed('FilePicker: No nodes selected'))
error, even though files where selected
I investigated it and I think it is caused by this line:
nextcloud-dialogs/lib/filepicker-builder.ts
Line 73 in e6ec02d
because it gets the
nodesout of the array like this:[nodes] =...and then checks if the node is an array instantly after, butnodesis now actually just one node and never an array.