Console/fix update column comment

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3201
GitOrigin-RevId: 7a04cf2b94cccebe31041df76b2260dfae2b66bc
This commit is contained in:
Matt Hardman 2021-12-22 06:39:30 +00:00 committed by hasura-bot
parent aabc5189be
commit 19c7002a7b
2 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ const ColumnEditorList = ({
const keyPropertiesString = propertiesList.join(', ');
propertiesDisplay.push(
<span className="ml-xs font-normal" key={'props'}>
<span className="ml-xs mr-2 font-normal" key={'props'}>
{keyPropertiesString}
</span>
);

View File

@ -670,7 +670,7 @@ export const getSetCommentSql = (
columnName?: string,
functionName?: string
) => {
if (functionName) {
if (functionName && !columnName) {
return `
comment on ${on} "${schemaName}"."${functionName}" is ${
comment ? sqlEscapeText(comment) : 'NULL'