-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Always set _detailsPresenter.Content even if SelectedItem is null #1199
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
Conversation
|
This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request. |
|
This would mean that people using MapDetails would need to check for null now when previously they did not. |
| _detailsPresenter.Content = MapDetails == null | ||
| ? SelectedItem | ||
| : MapDetails(SelectedItem); | ||
| _detailsPresenter.Content = MapDetails == null ? SelectedItem : SelectedItem != null ? MapDetails(SelectedItem) : null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a lot happening on one line. Could you please change to:
_detailsPresenter.Content = MapDetails == null
? SelectedItem
: SelectedItem != null ? MapDetails(SelectedItem) : null;
| _detailsPresenter.Content = MapDetails == null | ||
| ? SelectedItem | ||
| : MapDetails(SelectedItem); | ||
| _detailsPresenter.Content = MapDetails == null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry to seem like a jerk, but please make sure the file is formatted properly. These new changes have only three spaces for a tab rather than four.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries, I have different standards installed on this machine - Making sure spacing is consistent IS a battle worth fighting.
| : SelectedItem != null ? MapDetails(SelectedItem) : null; | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last spacing issue
Fixes #1197
(and likely #745 as well)