Skip to content

Commit

Permalink
dont redirect if schema id param is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
josxha committed Oct 16, 2023
1 parent 2aa2b77 commit f9bbb45
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions OryAdmin/Components/Pages/Identities/Schemas/Index.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public partial class Index
private KratosIdentitySchemaContainer? _selectedSchema;

[SupplyParameterFromQuery(Name = "id")]
// ReSharper disable once UnusedAutoPropertyAccessor.Local
private string? SchemaId { get; set; }

[Inject] private ApiService ApiService { get; set; } = default!;
Expand All @@ -28,11 +27,7 @@ protected override async Task OnInitializedAsync()
return;
}

if (SchemaId == null)
{
Navigation.NavigateTo($"identities/schemas?id={_schemas.First().Id}");
return;
}
SchemaId ??= _schemas.First().Id;

_selectedSchema = _schemas.First(schema => schema.Id == SchemaId);
_isLoading = false;
Expand Down

0 comments on commit f9bbb45

Please sign in to comment.