Skip to content

Gets [Object Object] when creating the file path in AddFileButton #1

@yafkari

Description

@yafkari

We get a [Object Object] when joining path in AddFileButton, line 27.

The reason is that path is not a string joinable but actually an object containing the property name on which we want to join.

So the line ${currentFolder.path.join("/")}/${currentFolder.name}/${file.name} should be replaced by ${currentFolder.path.map(f => f.name).join("/")}/${currentFolder.name}/${file.name}.

Hope it helps someone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions