Fix file save process
This commit is contained in:
@ -110,15 +110,14 @@ namespace Hcs.WebApp.Components.Shared
|
||||
ShowClose = false
|
||||
});
|
||||
|
||||
var fileToParseId = -1;
|
||||
if (dialogResult != null && int.TryParse(dialogResult, out fileToParseId))
|
||||
if (dialogResult != null)
|
||||
{
|
||||
ChangeState(SyncedPageState.SyncWaiting);
|
||||
|
||||
// TODO: Use user id
|
||||
var campaign = await HeadquartersService.InitiateCampaignAsync(CampaignType, "", new CampaignParseArgs()
|
||||
{
|
||||
FileToParseId = fileToParseId
|
||||
FileToParseId = (int)dialogResult
|
||||
});
|
||||
CampaignManagementState.EnqueueCampaign(campaign);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user