Skip to content

Commit

Permalink
more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
grzanka committed Jan 3, 2025
1 parent eb3ba00 commit fb49c39
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/services/ShSimulatorService.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ const ShSimulation = ({ children }: GenericContextProviderProps) => {

const jobInputs = await getJobInputs(info, signal, cache);

// if editor project data (with filter definions etc) is available, recreate references in results
if (jobInputs?.input.inputJson) {
const inputJsonForThisEstimator = {
...jobInputs.input.inputJson,
Expand All @@ -479,6 +480,8 @@ const ShSimulation = ({ children }: GenericContextProviderProps) => {

resolve(data);
} else {
// if editor project data is not available (i.e. running from user uploaded files),
// return the results without recreating references
const data: SpecificEstimator = {
jobId,
estimators: estimator,
Expand Down

0 comments on commit fb49c39

Please sign in to comment.