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:
csawatzky 2025-03-26 15:56:35 -06:00
parent 765395608f
commit 278dfa713d

View file

@ -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();