allow start model when user select same value with selected model

This commit is contained in:
Faisal Amir 2024-01-17 09:48:23 +07:00
parent a6aec56203
commit 14400452b8

View File

@ -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">