Skip to content

Commit

Permalink
SOF-7297: refactor ==> elementsWithLabelsArray
Browse files Browse the repository at this point in the history
  • Loading branch information
pranabdas committed Mar 23, 2024
1 parent 04821ce commit 9ac6dc8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/context/providers/HubbardUContextProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,7 @@ export class HubbardUContextProvider extends mix(JSONSchemaFormDataProvider).wit
"7p",
"7d",
];
const _labels = this.material?.Basis?.atomicLabelsArray || [];
const _elements = this.material?.Basis?.elementsArray || [];
const _elementsWithLabels = [];
_elements.forEach((element, idx) => {
_elementsWithLabels.push(element + _labels[idx]);
});
const _elementsWithLabels = this.material?.Basis?.elementsWithLabelsArray || [];
this.uniqueElementsWithLabels = [...new Set(_elementsWithLabels)];
}

Expand Down

0 comments on commit 9ac6dc8

Please sign in to comment.