Skip to content

Commit

Permalink
allow start model when user select same value with selected model
Browse files Browse the repository at this point in the history
  • Loading branch information
urmauur committed Jan 17, 2024
1 parent a6aec56 commit 1440045
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/containers/DropdownListSidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,10 @@ export default function DropdownListSidebar() {
key={i}
value={x.id}
className={twMerge(x.id === selected?.id && 'bg-secondary')}
onClick={() => {
x.id === selected?.id && console.log('huhft')
onPointerUp={() => {
if (x.id === selected?.id) {
startModel(x.id)
}
}}
>
<div className="flex w-full justify-between">
Expand Down

0 comments on commit 1440045

Please sign in to comment.