Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced FindIndex with IndexOf for adding of assignedunits to the CAD object #20

Open
porcej opened this issue Jan 26, 2023 · 1 comment

Comments

@porcej
Copy link
Owner

porcej commented Jan 26, 2023

After implementation of #timbellomo/Dashboard.Models/issues/6 replaced FindIndex with IndexOf

var unitKey = incident.UnitsAssigned.IndexOf(unit);

@porcej
Copy link
Owner Author

porcej commented Jan 27, 2023

Proposed fix:

// 2023-01-27 - Removed the use of IndexOf until such time as *DTO object support IEquivalnt // var unitKey = incident.UnitsAssigned.IndexOf(assignedUnit); var unitKey = incident.UnitsAssigned.findIndex(u => u.RadioName == assignedUnit.RadioName);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant