When counting a list of things within a datatype, records that have previously been deleted are being included in the count.
I believe this is happening because the things were deleted before “being removed from the list” which created “phantom things”. This is problem because I am trying to display a count of things in a list and counting the phantom things messes this up.
Is there a way I can delete these records? They do not have ids.
The correct count should be 4. Initially, 21 is displayed.
There are 17 deleted records that are included in this count that are initially showing the count to incorrectly be 21. After navigating around the app, the correct number of 4 is shown. This is creating bugs in my workflows because the count bubble is using is including the phantom things (using 21 instead of 4) when I perform calculations. For reference 4 is dynamic not static. Things that will be counted are created and deleted regularly.