mirror of
https://github.com/chartdb/chartdb.git
synced 2025-11-04 22:13:15 +00:00
fix empty script error
This commit is contained in:
@@ -139,8 +139,10 @@ export const ExportSQLDialog: React.FC<ExportSQLDialogProps> = ({
|
||||
<div className="flex flex-1 items-center justify-center">
|
||||
{error ? (
|
||||
renderError()
|
||||
) : (script?.length ?? 0) === 0 ? (
|
||||
) : script === undefined ? (
|
||||
renderLoader()
|
||||
) : script.length === 0 ? (
|
||||
renderError()
|
||||
) : (
|
||||
<CodeSnippet
|
||||
className="max-h-96 w-full"
|
||||
|
||||
Reference in New Issue
Block a user