fix(saved query): handle null sql field (#11679)
This commit is contained in:
parent
95246e8812
commit
218f58edb7
|
|
@ -162,7 +162,7 @@ const SavedQueryPreviewModal: FunctionComponent<SavedQueryPreviewModalProps> = (
|
|||
<QueryTitle>query name</QueryTitle>
|
||||
<QueryLabel>{savedQuery.label}</QueryLabel>
|
||||
<SyntaxHighlighter language="sql" style={github}>
|
||||
{savedQuery.sql}
|
||||
{savedQuery.sql || ''}
|
||||
</SyntaxHighlighter>
|
||||
</StyledModal>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -56,6 +56,6 @@ export type SavedQueryObject = {
|
|||
id: number;
|
||||
label: string;
|
||||
schema: string;
|
||||
sql: string;
|
||||
sql: string | null;
|
||||
sql_tables?: { catalog?: string; schema: string; table: string }[];
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue