show error when no selected file to import

This commit is contained in:
MaysWind
2025-02-04 01:30:54 +08:00
parent 376f5b2650
commit a5382e9fdd
6 changed files with 6 additions and 0 deletions
@@ -1493,6 +1493,7 @@ function setImportFile(event: Event): void {
function parseData(): void {
if (!importFile.value) {
snackbar.value?.showError('Please select a file to import');
return;
}