parse-community / parse-dashboard

A dashboard for managing Parse Server
https://parseplatform.org
Other
3.75k stars 1.39k forks source link

fix: Screen goes blank when trying to add column of type `Object` or `GeoPoint` #2384

Closed damianstasik closed 1 year ago

damianstasik commented 1 year ago

New Pull Request Checklist

Issue Description

When ref is not passed to TextInput component it will crash itself when multiline prop is user. I had to add optional ref handling, as well as change componentWillReceiveProps to componentDidUpdate for two reasons:

  1. To have a correct ref available to focus + remove the need for timeout hacks
  2. CWRP is deprecated, this moves the dashboard a tiny step toward React 18

Closes: #2373

Approach

TODOs before merging

parse-github-assistant[bot] commented 1 year ago

I will reformat the title to use the proper commit message syntax.

parse-github-assistant[bot] commented 1 year ago

Thanks for opening this pull request!

uffizzi-cloud[bot] commented 1 year ago

Uffizzi Preview Environment deployment-15255

:cloud: https://pr-2384-deployment-15255-parse-dashboard.app.uffizzi.com

:page_facing_up: View Application Logs etc.

What is Uffizzi? Learn more

parseplatformorg commented 1 year ago

🎉 This change has been released in version 5.1.0-alpha.9

aacassandra commented 1 year ago

🎉 This change has been released in version 5.1.0-alpha.9

still error when add new column with type Array, Object, Polygon and GeoPoint any update? in aplha 10 still error too

WashingtonAviz commented 1 year ago

The mistake is still happening, Brazil here! Someone with the solution?

mtrezza commented 1 year ago

What steps are you taking to see the issue and what dashboard version are you using?

parseplatformorg commented 1 year ago

🎉 This change has been released in version 5.1.0-beta.2

WashingtonAviz commented 1 year ago

Opa!!! Agora foi resolvido!!! Muito grato!!! now it's solved! Thank you very much!

parseplatformorg commented 1 year ago

🎉 This change has been released in version 5.1.0