From df6dc0297716d2b961d92e61c8cb37343856c8dd Mon Sep 17 00:00:00 2001 From: pfh59 <109206285+pfh59@users.noreply.github.com> Date: Tue, 17 Oct 2023 21:38:06 +0200 Subject: [PATCH] refactoring_optim_fix (#150) * fix ci * fix nullable object --- .github/workflows/ci-cd.yaml | 2 +- .vscode/settings.json | 6 ++++++ src/WHMapper/Pages/Mapper/CustomNode/EveSystemNode.razor | 9 ++++++--- 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.github/workflows/ci-cd.yaml b/.github/workflows/ci-cd.yaml index 75fb212d..0e3146b7 100644 --- a/.github/workflows/ci-cd.yaml +++ b/.github/workflows/ci-cd.yaml @@ -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 diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..9dbf38fc --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "sonarlint.connectedMode.project": { + "connectionId": "vscode", + "projectKey": "pfh59_eve-whmapper" + } +} \ No newline at end of file diff --git a/src/WHMapper/Pages/Mapper/CustomNode/EveSystemNode.razor b/src/WHMapper/Pages/Mapper/CustomNode/EveSystemNode.razor index a21f7d93..2acd6427 100644 --- a/src/WHMapper/Pages/Mapper/CustomNode/EveSystemNode.razor +++ b/src/WHMapper/Pages/Mapper/CustomNode/EveSystemNode.razor @@ -28,9 +28,12 @@ - @foreach (var effectInfo in Node.EffectDetails) + @if (Node != null && Node.EffectDetails!=null) { - @effectInfo.Name. : @effectInfo.Value% + foreach (var effectInfo in Node.EffectDetails) + { + @effectInfo.Name. : @effectInfo.Value% + } } @@ -61,7 +64,7 @@ { } - @Node?.ConnectedUsers.FirstOrDefault() + @Node?.ConnectedUsers?.FirstOrDefault()
@if (Node != null && Node.Statics != null && Node?.Statics.Count() > 0)