@russian-dima Unfortunately I have not been able to find the issue as of yet. But I really appreciate the rewrite, it shows me how to do a lot of things significantly better. When my code was only a few dozen lines long with a function or 2 it didn’t matter so much, but this page is getting quite complex. Outside of the question of what I am doing wrong I notice that you use syntax such as
$w('#customPlan').onClick(async(event)=>{})
instead of using the functions like these
export async function customPlan_click(event){}
is there a difference in how these behave or is it more stylistic? One place I see a possible difference is when an onready is placed under the pages onready. If there are times where the page isn’t ready, and the dataset is I could see using your syntax being better as both would need to be ready if I am reading it correctly.
I will continue to look to see if I can find a reason. I am doing cleanup work every so often to delete these records. It doesn’t seem to hurt anything much (I need to put in checks to load the value with data if multiples are returned) But that is only if I can’t resolve the issue.