Parse-dashboard: Bad displayed filename

Created on 24 Jun 2019  路  3Comments  路  Source: parse-community/parse-dashboard

Hello folks!

I realized that the filename displayed in BrowserCell is not like the original name of the file (the name after first _).

Then, I ended up finding this:

https://github.com/parse-community/parse-dashboard/blob/c4e238ffacd025b9ebd447ec2216f39feb1fe84f/src/lib/getFileName.js#L14-L18

According to parse server's source offset should be either 32 or name.indexOf('_') + 1, shouldn't it?

bug good first pr up for grabs

Most helpful comment

@douglasmuraoka , thanks for responding. Sure! I am going to send you a PR with that fix soon.

All 3 comments

@yagotome thanks for reporting the issue. Yes, this function seems to be outdated. Could you send us a PR to fix this?

@douglasmuraoka , thanks for responding. Sure! I am going to send you a PR with that fix soon.

Thank you @yagotome for your awesome PR! :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gianpaj picture gianpaj  路  5Comments

acinader picture acinader  路  5Comments

robertodias180 picture robertodias180  路  5Comments

mattgoldspink picture mattgoldspink  路  3Comments

oligazar picture oligazar  路  7Comments