feat: prevent downloading empty config
This commit is contained in:
@@ -60,7 +60,7 @@ export function FileChooser({ onSelected, config }: FileChooserProps) {
|
||||
URL.revokeObjectURL(url);
|
||||
}
|
||||
|
||||
const hasConfig = !!config;
|
||||
const hasConfig = !!config && !config.isEmpty();
|
||||
|
||||
return (
|
||||
<div className="bg-white rounded-xl shadow-md p-4 border border-slate-200">
|
||||
|
||||
Reference in New Issue
Block a user