Skip to content

Commit 21a4a0e

Browse files
committed
#RI-5373 - fix multiple popovers open
1 parent adc3d0a commit 21a4a0e

File tree

1 file changed

+1
-1
lines changed
  • redisinsight/ui/src/components/database-side-panels/panels/enablement-area/EnablementArea/components/CodeButtonBlock

1 file changed

+1
-1
lines changed

redisinsight/ui/src/components/database-side-panels/panels/enablement-area/EnablementArea/components/CodeButtonBlock/CodeButtonBlock.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const CodeButtonBlock = (props: Props) => {
8282

8383
const handleRunClicked = () => {
8484
if (!instanceId || notLoadedModule || (!isNotShowConfirmation && isButtonHasConfirmation)) {
85-
setIsPopoverOpen(true)
85+
setIsPopoverOpen((v) => !v)
8686
return
8787
}
8888

0 commit comments

Comments
 (0)