firebase-google-drive-clone
firebase-google-drive-clone copied to clipboard
Gets [Object Object] when creating the file path in AddFileButton
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.
I've proposed the change, whoever sees it now should already see the change, provided it's accepted.