16-12-2022
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
@using ECM.JobRunner.Common.JobRunnerReference;
|
||||
@using ECM.JobRunner.Web.Data;
|
||||
@inject NavigationManager Navigation;
|
||||
@inject ImportService Profile;
|
||||
@inject ImportProfileService Profile;
|
||||
|
||||
<PageTitle>Schritt bearbeiten</PageTitle>
|
||||
|
||||
@@ -21,9 +21,12 @@
|
||||
|
||||
private async void OnFormSubmit(EditContext ctx)
|
||||
{
|
||||
ImportProfile profile = await Profile.GetProfile(ProfileId);
|
||||
ImportProfile? profile = await Profile.GetProfile(ProfileId);
|
||||
ImportProfileStep step = (ImportProfileStep)ctx.Model;
|
||||
|
||||
if (profile == null)
|
||||
return;
|
||||
|
||||
// TODO: This is ugly and manual and needs to be abstracted.
|
||||
var index = profile.Steps.ToList().FindIndex(s => s.Id == StepId);
|
||||
profile.Steps[index] = step;
|
||||
|
||||
Reference in New Issue
Block a user