Fix loading results in second opened view

When results were already cached in memory and the view requested the
result, it would not be loaded because the event would not be fired.
This fires the event when the result is loaded from cache as well, to
ensure that the view always receives the result.
This commit is contained in:
Koen Vlaswinkel
2022-11-29 14:26:36 +01:00
parent a1b81d9b6f
commit bc65d8f311

View File

@@ -121,6 +121,7 @@ export class VariantAnalysisResultsManager extends DisposableObject {
createCacheKey(variantAnalysisId, repositoryFullName),
);
if (result) {
this._onResultLoaded.fire(result);
return result;
}