Skip to content

Commit cd92f7c

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

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • client/packages/lowcoder/src/pages/setting/organization

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)