When you delete the last record of a collection you get the next error message:
Error: Cannot read properties of null (reading 'length')
When you delete the last record of a collection you get the next error message:
Error: Cannot read properties of null (reading 'length')