firebase-google-drive-clone icon indicating copy to clipboard operation
firebase-google-drive-clone copied to clipboard

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

Open yafkari opened this issue 4 years ago • 1 comments

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.

yafkari avatar Aug 10 '21 14:08 yafkari

I've proposed the change, whoever sees it now should already see the change, provided it's accepted.

Akul2010 avatar Jan 23 '22 18:01 Akul2010