From 14400452b819082a04c1435db352bc1a17a12903 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Wed, 17 Jan 2024 09:48:23 +0700 Subject: [PATCH] allow start model when user select same value with selected model --- web/containers/DropdownListSidebar/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/containers/DropdownListSidebar/index.tsx b/web/containers/DropdownListSidebar/index.tsx index 78fb03551..9f00ebfaf 100644 --- a/web/containers/DropdownListSidebar/index.tsx +++ b/web/containers/DropdownListSidebar/index.tsx @@ -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) + } }} >