Skip to content

Commit 06e045f

Browse files
Merge pull request #60 from Exabyte-io/hotfix/SOF-7175
SOF-7175: fix default atomicSpecies data in Hubbard_U context provider
2 parents 4e9e1dd + 1b17335 commit 06e045f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/context/providers/HubbardContextProvider.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ export class HubbardContextProvider extends mix(JSONSchemaFormDataProvider).with
1919
}
2020

2121
get defaultData() {
22-
return [{ ...defaultHubbardConfig, atomicSpecies: this.uniqueElements }];
22+
return [
23+
{
24+
...defaultHubbardConfig,
25+
atomicSpecies: this.uniqueElements?.length > 0 ? this.uniqueElements[0] : "",
26+
},
27+
];
2328
}
2429

2530
get uiSchemaStyled() {

0 commit comments

Comments
 (0)