generate script fixes

This commit is contained in:
Jan Prochazka
2020-06-06 22:17:17 +02:00
parent 74aa90fd2a
commit 617548cd50
6 changed files with 40 additions and 28 deletions

View File

@@ -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]