db fixed import
All checks were successful
Deploy Nyla Frontend to Production / deploy (push) Successful in 46s
All checks were successful
Deploy Nyla Frontend to Production / deploy (push) Successful in 46s
This commit is contained in:
parent
12868fdd17
commit
3cc2f4decf
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue