fix empty script error

This commit is contained in:
Guy Ben-Aharon
2024-08-24 19:35:31 +03:00
parent 0ac577f072
commit d0f8ac74c1

View File

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