mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 18:56:00 +00:00
generate script fixes
This commit is contained in:
@@ -7,6 +7,7 @@ import FormStyledButton from '../widgets/FormStyledButton';
|
||||
import { useConnectionList, useDatabaseList, useDatabaseInfo } from './metadataLoaders';
|
||||
import useSocket from './SocketProvider';
|
||||
import getAsArray from './getAsArray';
|
||||
import { fullNameToString } from '@dbgate/datalib';
|
||||
|
||||
export const FormRow = styled.div`
|
||||
display: flex;
|
||||
@@ -143,7 +144,7 @@ export function FormTablesSelect({ conidName, databaseName, name }) {
|
||||
const tablesOptions = React.useMemo(
|
||||
() =>
|
||||
[...((dbinfo && dbinfo.tables) || []), ...((dbinfo && dbinfo.views) || [])].map((x) => ({
|
||||
value: `${x.schemaName}.${x.pureName}`,
|
||||
value: fullNameToString(x),
|
||||
label: x.pureName,
|
||||
})),
|
||||
[dbinfo]
|
||||
|
||||
Reference in New Issue
Block a user