DX issue: Partial card generated didn't load #3185
Closed
cmaxw
started this conversation in
Feature feedback
Replies: 1 comment
-
Agreed! That's a bug in the template. Moving this to an issue so we can add it to the queue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I used the rails generator to generate a partial card for one of my resources. When I added it to the resource, it wouldn't load.
I clicked the link that says "This is not an issue with Avo. Use this page to see why this frame failed to load."
It showed a long backtrace that went into the bowels of Avo's Card rendering. Better Errors clearly wasn't helping here.
Then, I looked at my logs. It showed that it had generated a view with
@dashboard.id
called. Since I put this card into a resource,@dashboard
wasnil
and it caused the error.So, I recommend you either conditionally call
@dashboard.id
or@resource.id
to avoid the nil issue, or take it out altogether and put the instructions into the generated view as text.Beta Was this translation helpful? Give feedback.
All reactions