scaphold-io / scaphold-issues

Post issues that you find on Scaphold here. Post anything about the platform, docs, boilerplates, etc... Happy Scapholding!
3 stars 0 forks source link

Javascript error in the app dashboard #23

Closed fedebertolini closed 2 years ago

fedebertolini commented 7 years ago

When I enter my app's dashboard (https://scaphold.io/apps/apartment-rent/) a javascript error occurs and the page hangs with spinner with the You look great today. message. The worst thing is that I don't look great today, I have the flu and look like #@$*& šŸ˜

Error message:

Uncaught (in promise) Error: Could not find schema with name: undefined
    at new t (0.06c741dā€¦.chunk.js:22)
    at d._constructComponentWithoutOwner (main.8646793ā€¦.js:66)
    at d._constructComponent (main.8646793ā€¦.js:66)
    at d.mountComponent (main.8646793ā€¦.js:65)
    at Object.mountComponent (main.8646793ā€¦.js:11)
    at d.performInitialMount (main.8646793ā€¦.js:66)
    at d.mountComponent (main.8646793ā€¦.js:66)
    at Object.mountComponent (main.8646793ā€¦.js:11)
    at h.mountChildren (main.8646793ā€¦.js:66)
    at h._createInitialChildren (main.8646793ā€¦.js:66)

If you want me to post here some of the api responses just let me know

fedebertolini commented 7 years ago

I've been digging in the minified code, and it looks like it fails in a piece of code where you iterating over the app's schemas searching for a specific schema. The component's props has an attribute called params that should contain the schema you are looking for, but it only has the app's alias.

screen shot 2017-02-21 at 20 39 09