Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cd92f7c

Browse files
committed
disable row click on switch
1 parent 23fcbf9 commit cd92f7c

File tree

1 file changed

+4
-1
lines changed
  • client/packages/lowcoder/src/pages/setting/organization

1 file changed

+4
-1
lines changed

‎client/packages/lowcoder/src/pages/setting/organization/orgList.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,10 @@ function OrganizationSetting() {
274274
<SwitchBtn
275275
className={"home-datasource-edit-button"}
276276
buttonType={"blue"}
277-
onClick={() => dispatch(switchOrg(item.id))}
277+
onClick={(e) => {
278+
e.stopPropagation();
279+
dispatch(switchOrg(item.id));
280+
}}
278281
>
279282
{trans("profile.switchOrg")}
280283
</SwitchBtn>

0 commit comments

Comments
 (0)