Skip to content

Commit

Permalink
Fix off by one error
Browse files Browse the repository at this point in the history
  • Loading branch information
kalilsn committed Feb 26, 2025
1 parent aaf0f0a commit 1e0850b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const SelectElement = ({ panelState }: { panelState: PanelState }) => {
fieldId: field.id,
required: true,
type: ElementType.pubfield,
rank: mudder.base62.mudder(elements[elementsCount].rank, "", 1)[0],
rank: mudder.base62.mudder(elements[elementsCount - 1].rank, "", 1)[0],
configured: false,
label: field.name,
component,
Expand Down Expand Up @@ -131,7 +131,7 @@ export const SelectElement = ({ panelState }: { panelState: PanelState }) => {
element: elementType,
type: ElementType.structural,
rank: mudder.base62.mudder(
elements[elementsCount].rank,
elements[elementsCount - 1].rank,
"",
1
)[0],
Expand Down

0 comments on commit 1e0850b

Please sign in to comment.