fix: not owner can not pay (#1772)

This commit is contained in:
Joel
2023-12-18 16:54:47 +08:00
committed by GitHub
parent ebc2cdad2e
commit 354d033e60
7 changed files with 24 additions and 8 deletions

View File

@@ -31,7 +31,8 @@ const WorkplaceSelector = () => {
const handleSwitchWorkspace = async (tenant_id: string) => {
try {
if (currentWorkspace?.id === tenant_id) return
if (currentWorkspace?.id === tenant_id)
return
await switchWorkspace({ url: '/workspaces/switch', body: { tenant_id } })
notify({ type: 'success', message: t('common.actionMsg.modifiedSuccessfully') })
location.assign(`${location.origin}`)