Error on Patient Device Page After Deletion
A device set that is assigned to a patient can be deleted. When this happens, the '/app/patient/{patientId}/device' page shows the following error: "Cannot read properties of undefined (reading 'forEach')" as it is trying to get a non-existing device set.
Possible solution Nº1: Do not let users delete assigned device-sets. Possible solution Nº2: When an assigned device-set is deleted, unassign it first.