bullet-train-pro / bullet_train-action_models

Other
5 stars 1 forks source link

Avoid Action Record View Error #36

Closed phillipn closed 1 year ago

phillipn commented 1 year ago

There is a method called valid_targets on any ImportAction record. It is conceivable that the value for that will change over time. Our company had an Action record with ONE target. That target record was submitted as a part of an action, but then a subsequent update to her underlying target record rendered her no longer a valid_target.

When we tried to render that ImportAction record, the view errored out, because targeted.first was nil