db fixed import
All checks were successful
Deploy Nyla Frontend to Production / deploy (push) Successful in 46s

This commit is contained in:
ValueOn AG 2026-05-25 16:30:35 +02:00
parent 12868fdd17
commit 3cc2f4decf

View file

@ -1002,7 +1002,9 @@ const MigrationTab: React.FC = () => {
}, []);
const _startImport = async () => {
if (!importTokenRef.current || !validation?.valid) return;
if (!importTokenRef.current || !validation?.valid || importing) return;
setImporting(true);
const modeLabel = importMode === 'replace'
? t('Neu (Datenbank leeren und importieren)')
@ -1012,9 +1014,7 @@ const MigrationTab: React.FC = () => {
t('Import mit Modus "{mode}" starten? Dieser Vorgang kann nicht rueckgaengig gemacht werden.', { mode: modeLabel }),
{ title: t('Import starten'), variant: importMode === 'replace' ? 'danger' : 'primary' },
);
if (!ok) return;
setImporting(true);
if (!ok) { setImporting(false); return; }
setImportLog([]);
const token = importTokenRef.current;