Skip to content

Commit

Permalink
feat(buildteams): 🐛 disable moving of sort = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Nudelsuppe42 committed Jan 3, 2024
1 parent 9b67c48 commit 854a8e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/teams/[team]/manage/apply.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ const Apply: NextPage = ({ data: tempData, team }: any) => {
<Stack gap={0}>
<ActionIcon
variant={i == 0 ? 'transparent' : 'subtle'}
disabled={i == 0}
disabled={i == 0 || d.sort <= 0}
onClick={() => {
handleUpdateQuestion(d.id, { sort: d.sort > 0 ? d.sort - 1 : d.sort });
}}
Expand Down

0 comments on commit 854a8e1

Please sign in to comment.