Server-connect based parent-child repeats breaks when using variables across the two levels

Wappler Version : 2.5.1
Operating System : Mac OSX Mojave v10.14.5

Dear all,

I have attached the page & the server action file (uses public api sample data) for the below bug report.

Archive.zip (2.5 KB)

Details

I have a server-connect data (myJSON) that has two-level of parent-child data (department & employees) and is rendered using parent-child repeats (screenshot below).

Structure: {department: {name, employee: {name, year, salary} } }

I have two variables on employee-level that holds the salaries of 2019 & 2020 for each employee. And this is used on department-level to show the total salary of the respective years using this formula:

"var_total_salary_2019" = "child.items.sum("var_2019_salary.value").default(0)"

This works perfectly when loading the page… until… I have button when clicked, reloads the my server-connect with amended data. When reloaded, looks like everything is broken in the repeats.

When I look at the dmx.app.data after reload:

I assume this is a bug as it’s logically not working to my eyes. Any help would be greatly appreciated, have been a great blocker. Thanks in advance.

Community Page
Last updated: