@hestia-earth/ui-components 0.31.9 → 0.31.10
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.
|
@@ -6168,14 +6168,14 @@ const logEmissionFailedInputs = (node, termId, emissions) => {
|
|
|
6168
6168
|
const configModels = unique(data.flatMap(emission => emission.methodModel?.['@id']).filter(Boolean));
|
|
6169
6169
|
const missingInputs = node.inputs?.filter(input => !existingInputs.includes(input.term?.['@id']));
|
|
6170
6170
|
return data.length
|
|
6171
|
-
? missingInputs
|
|
6171
|
+
? (missingInputs?.map(input => ({
|
|
6172
6172
|
blankNode: true,
|
|
6173
6173
|
key: 'input',
|
|
6174
6174
|
id: input.term['@id'],
|
|
6175
6175
|
term: input.term,
|
|
6176
6176
|
showUnits: true,
|
|
6177
6177
|
configModels
|
|
6178
|
-
}))
|
|
6178
|
+
})) ?? [])
|
|
6179
6179
|
: [];
|
|
6180
6180
|
};
|
|
6181
6181
|
const logBackgroundEmissions = (logs) => (logs.models || [])
|