Skip to content

Commit

Permalink
SOF-7297: fix defaultData for HubbardUContextProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
pranabdas committed Mar 23, 2024
1 parent df8e2c8 commit e43aa09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/context/providers/HubbardUContextProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ export class HubbardUContextProvider extends mix(JSONSchemaFormDataProvider).wit
return [
{
...defaultHubbardConfig,
atomicSpecies: this.uniqueElements?.length > 0 ? this.uniqueElements[0] : "",
atomicSpecies:
this.uniqueElementsWithLabels?.length > 0
? this.uniqueElementsWithLabels[0]
: "",
},
];
}
Expand Down

0 comments on commit e43aa09

Please sign in to comment.