Ensuring the last selected variable id is reset when closing the dialog.
This closes
affectedControllerServicesContainer.empty();
$('#variable-registry-affected-unauthorized-components').empty();
+
+ // reset the last selected variable
+ lastSelectedId = null;
};
return {
