@hestia-earth/ui-components 0.41.13 → 0.41.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7188,6 +7188,7 @@ var LogStatus;
7188
7188
  })(LogStatus || (LogStatus = {}));
7189
7189
  const hasLogs = (logs) => !!logs?.requirements || !!logs?.logs || logs?.missingLookups?.length > 0;
7190
7190
  const hasLogDetails = (status, logs) => [LogStatus.success, LogStatus.error, LogStatus.dataProvided].includes(status) && hasLogs(logs);
7191
+ const isRecalculatedByModel = (data, model) => 'recalculated' in data && data.recalculated?.some(value => blankNodeModelId(value) === model.methodId);
7191
7192
  const logStatus = (data, logs, model, hasPreviousSuccess = false) => {
7192
7193
  const termLogs = logs?.[model.methodId];
7193
7194
  const withLogs = hasLog(termLogs);
@@ -7215,7 +7216,10 @@ const logStatus = (data, logs, model, hasPreviousSuccess = false) => {
7215
7216
  : LogStatus.error
7216
7217
  : LogStatus.dataProvided
7217
7218
  : data.isRecalculated
7218
- ? LogStatus.skipHierarchy
7219
+ ? // if the model runs twice, the first time it can succeed and the second time `isRunOrchestrator` is false
7220
+ isRecalculatedByModel(data, model)
7221
+ ? LogStatus.success
7222
+ : LogStatus.skipHierarchy
7219
7223
  : LogStatus.dataProvided
7220
7224
  : isCalculated
7221
7225
  ? isCurrentModel