Browse Source

fix: KERNEL-1349 修复 选中数据连接时,来回切换连接池状态和数据连接管理会报错 的问题

qufenxi
alan 5 years ago
parent
commit
74fdea0b51
  1. 2
      src/modules/app.service.ts

2
src/modules/app.service.ts

@ -79,7 +79,7 @@ export function resolveUrlInfo (url: string) {
}
export function connectionCanEdit(connection: Connection) {
if (connection.privilegeDetailBeanList) {
if (connection && connection.privilegeDetailBeanList) {
// privilegeType === 4 代表编辑权限,privilegeValue === 2 代表有权限
return connection.privilegeDetailBeanList.some(item => item.privilegeType === 4 && item.privilegeValue === 2);
}

Loading…
Cancel
Save