Revert "fix: resolve all ESLint errors in backend and frontend"
Build and Push Multi-Platform Images / build-and-push (push) Successful in 19s
Build and Push Multi-Platform Images / build-and-push (push) Successful in 19s
This reverts commit 07dfd7e840.
This commit is contained in:
@@ -121,7 +121,7 @@ export default function DocumentEditModal({ documentId, document, open, onClose,
|
||||
useEffect(() => {
|
||||
if (open && document) {
|
||||
|
||||
const customFieldsObj: any = {};
|
||||
let customFieldsObj: any = {};
|
||||
if (document.customFields) {
|
||||
document.customFields.forEach(cf => {
|
||||
customFieldsObj[`cf_${cf.field}`] = cf.value;
|
||||
|
||||
@@ -322,9 +322,7 @@ export default function MailImportWizard({ visible, onClose, onSuccess, email, a
|
||||
try {
|
||||
const status = await emailImportApi.getJobStatus(jobId);
|
||||
if (status?.message) setImportStatus(status.message);
|
||||
} catch {
|
||||
// Status-Abfrage fehlgeschlagen: nächsten Poll abwarten
|
||||
}
|
||||
} catch {}
|
||||
}, 1500);
|
||||
try {
|
||||
const finalData = [];
|
||||
|
||||
@@ -441,10 +441,9 @@ function DocTypeFieldsTable({ docTypeId }: { docTypeId: number }) {
|
||||
case 1: return <Tag>Absender</Tag>;
|
||||
case 2: return <Tag>Belegdatum</Tag>;
|
||||
case 3: return <Tag>Ablagenummer</Tag>;
|
||||
case 4: {
|
||||
case 4:
|
||||
const cf = customFields.find(c => c.id === record.TypeIndex);
|
||||
return <Tag color="blue">{cf ? cf.name : `CF #${record.TypeIndex}`}</Tag>;
|
||||
}
|
||||
case 5: return <Tag>Titel</Tag>;
|
||||
default: return <Tag>Unbekannt ({record.Type})</Tag>;
|
||||
}
|
||||
|
||||
@@ -8,8 +8,6 @@ export function useAuthUrl(url: string | null | undefined): string | null {
|
||||
|
||||
useEffect(() => {
|
||||
if (!url) {
|
||||
// Reset des Blob-URLs, wenn keine Quelle (mehr) vorhanden ist
|
||||
// eslint-disable-next-line react-hooks/set-state-in-effect
|
||||
setBlobUrl(null);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user