Skip to content

Commit

Permalink
refactoring_optim_fix (#150)
Browse files Browse the repository at this point in the history
* fix ci
* fix nullable object
  • Loading branch information
pfh59 authored Oct 17, 2023
1 parent 9ea5b9a commit df6dc02
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
time: '5s'

- name: Restore dependencies
run: dotnet restore
run: dotnet restore src

- name: Cache SonarCloud packages
uses: actions/cache@v1
Expand Down
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sonarlint.connectedMode.project": {
"connectionId": "vscode",
"projectKey": "pfh59_eve-whmapper"
}
}
9 changes: 6 additions & 3 deletions src/WHMapper/Pages/Mapper/CustomNode/EveSystemNode.razor
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@
</ChildContent>
<TooltipContent>
<MudPaper Class="d-flex flex-column flex-grow-1 gap-1" Elevation="0">
@foreach (var effectInfo in Node.EffectDetails)
@if (Node != null && Node.EffectDetails!=null)
{
<MudText class="ml-1 mr-1" Typo="Typo.caption">@effectInfo.Name. : @effectInfo.Value%</MudText>
foreach (var effectInfo in Node.EffectDetails)
{
<MudText class="ml-1 mr-1" Typo="Typo.caption">@effectInfo.Name. : @effectInfo.Value%</MudText>
}
}
</MudPaper>
</TooltipContent>
Expand Down Expand Up @@ -61,7 +64,7 @@
{
<MudIcon Icon="@Icons.Material.Filled.Group" Color=Color.Transparent Size="Size.Small" />
}
<MudText Class="align-self-stretch ml-1 mt-1" Typo="Typo.caption">@Node?.ConnectedUsers.FirstOrDefault()</MudText>
<MudText Class="align-self-stretch ml-1 mt-1" Typo="Typo.caption">@Node?.ConnectedUsers?.FirstOrDefault()</MudText>
</div>
<div Class="d-flex justify-end">
@if (Node != null && Node.Statics != null && Node?.Statics.Count() > 0)
Expand Down

0 comments on commit df6dc02

Please sign in to comment.