Skip to content

filepicker.pick() always throws no nodes error #1878

@grnd-alt

Description

@grnd-alt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions