Skip to content

Commit

Permalink
Fix rebase issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Metal-Mighty committed Aug 26, 2024
1 parent ceb5b75 commit 1219c3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,6 @@

public string defaultDeviceModel { get; set; } = "Choose a Device Model";

public string defaultDeviceModel { get; set; } = "Choose a Device Model";

public string defaultDeviceModel { get; set; } = "Choose a Device Model";

public IEnumerable<IDeviceModel> DeviceModels = new List<IDeviceModel>();
Dictionary<string, List<DeviceModelCommandDto>> CommandDictionary = new Dictionary<string, List<DeviceModelCommandDto>>();

Check notice

Code scanning / CodeQL

Missed 'readonly' opportunity Note

Field 'CommandDictionary' can be 'readonly'.

Expand Down
15 changes: 4 additions & 11 deletions src/IoTHub.Portal.Client/Pages/Layer/LayerListPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@
@inject IDialogService DialogService
@inject ISnackbar Snackbar

@inject ILayerClientService LayerClientService
@inject IDialogService DialogService
@inject ISnackbar Snackbar

@inject ILayerClientService LayerClientService
@inject IDialogService DialogService
@inject ISnackbar Snackbar

<MudGrid>
<MudItem xs="12">
<MudExpansionPanel Text="Layer" IsInitiallyExpanded="true">
Expand Down Expand Up @@ -60,10 +52,11 @@
[CascadingParameter]
public Error Error { get; set; } = default!;

public HashSet<LayerHash> Layers { get; set; } = new HashSet<LayerHash> { };
public HashSet<LayerHash> Layers { get; set; } = new();

private IEnumerable<DeviceListItem> Devices { get; set; } = new List<DeviceListItem>();

public bool IsLoading { get; set; } = true;
public readonly int[] pageSizeOptions = { 10, 5, 3 };
public string? printDetails { get; set; }

protected override async Task OnInitializedAsync()
{
Expand Down

0 comments on commit 1219c3f

Please sign in to comment.