modified the bin page to use the bin key first if one was passed in then default to the params id
This commit is contained in:
parent
765395608f
commit
278dfa713d
1 changed files with 1 additions and 1 deletions
|
|
@ -269,7 +269,7 @@ export default function Bin(props: Props) {
|
|||
loadRef.current = true;
|
||||
//add the presets to the bin page data load
|
||||
binAPI
|
||||
.getBinPageData(binID, user.id(), showErrors)
|
||||
.getBinPageData(binKey ?? binID, user.id(), showErrors)
|
||||
.then(resp => {
|
||||
if (resp.data.grainCompositionNames) {
|
||||
let tempMap: Map<string, string> = new Map();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue