fix: Remove false 'Template-API not available' message on 404

When no template was saved yet, the API returns 404. This does not mean
the API is unavailable - it just means no template exists yet. The code
was incorrectly setting isTemplateApiAvailable to false on 404, causing
the misleading message 'Template-API auf diesem Server nicht verfuegbar'.

Fixed in both InvoiceTemplatePage and ReportTemplatePage.
This commit is contained in:
2026-03-18 09:19:54 +01:00
parent 775b09ebeb
commit 6dbf5a00c4
2 changed files with 0 additions and 2 deletions

View File

@@ -1225,7 +1225,6 @@ export default function InvoiceTemplatePage() {
setResizingElementId(null);
setTemplateUpdatedAt(null);
setTemplateError(null);
setIsTemplateApiAvailable(false);
return;
}
setTemplateError((error as Error).message);