mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 02:26:31 +00:00
feat: team & settings modal data sources tab revised
Signed-off-by: mertmit <mertmit99@gmail.com>
This commit is contained in:
@@ -68,19 +68,19 @@ const [setup, use] = useInjectionState(() => {
|
||||
return temp
|
||||
})
|
||||
|
||||
function getBaseType(baseId: string) {
|
||||
function getBaseType(baseId?: string) {
|
||||
return bases.value.find((base) => base.id === baseId)?.type || ClientType.MYSQL
|
||||
}
|
||||
|
||||
function isMysql(baseId: string) {
|
||||
function isMysql(baseId?: string) {
|
||||
return ['mysql', ClientType.MYSQL].includes(getBaseType(baseId))
|
||||
}
|
||||
|
||||
function isMssql(baseId: string) {
|
||||
function isMssql(baseId?: string) {
|
||||
return getBaseType(baseId) === 'mssql'
|
||||
}
|
||||
|
||||
function isPg(baseId: string) {
|
||||
function isPg(baseId?: string) {
|
||||
return getBaseType(baseId) === 'pg'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user