[ENHANCE] - Moved SetImage()
before the OnSelect fires so that the Parent can retrieve the Image from fileManager
rather then calling FileService
to retrieve again
This commit is contained in:
parent
fca306ffa6
commit
5345a12aca
|
@ -271,13 +271,10 @@
|
|||
{
|
||||
_message = string.Empty;
|
||||
FileId = int.Parse((string)e.Value);
|
||||
if (FileId != -1)
|
||||
{
|
||||
await OnSelect.InvokeAsync(FileId);
|
||||
}
|
||||
|
||||
await SetImage();
|
||||
await OnSelect.InvokeAsync(FileId);
|
||||
StateHasChanged();
|
||||
|
||||
}
|
||||
|
||||
private async Task SetImage()
|
||||
|
|
Loading…
Reference in New Issue
Block a user