fix: ErrorReports build errors - fix confirm/window.confirm and App.js JSX syntax

This commit is contained in:
2026-06-25 18:45:20 +02:00
parent 5c4c65abd7
commit c0fc0d1aab
3 changed files with 5 additions and 8 deletions

View File

@@ -13250,3 +13250,6 @@ Connected to MongoDB
[2026-06-25T15:16:24.745Z] SESSION: Session validation successful anders
[2026-06-25T15:16:24.816Z] API: Fetch player anders success
[2026-06-25T16:28:12.280Z] MariaDB: Tables created successfully
[2026-06-25T16:30:01.040Z] Session created: session_christoffer_1782405000961_eyfh1k
[2026-06-25T16:30:01.042Z] API: Player login christoffer success
[2026-06-25T16:45:07.930Z] MariaDB: Tables created successfully

View File

@@ -327,7 +327,7 @@ function App() {
rel="noopener noreferrer"
className="px-4 py-2 rounded-lg font-medium transition-all bg-slate-700/50 text-slate-200 hover:bg-slate-600/50"
>
🖨 Print
🖨 Print
</a>
<button
className={`px-4 py-2 rounded-lg font-medium transition-all ${tab==='errors' ? 'bg-yellow-600 text-white shadow-lg' : 'bg-slate-700/50 text-slate-200 hover:bg-slate-600/50'}`}
@@ -336,12 +336,6 @@ function App() {
Error
</button>
{authedPlayer === 'gm' && (
className={`px-4 py-2 rounded-lg font-medium transition-all ${tab==='error' ? 'bg-red-600 text-white shadow-lg' : 'bg-slate-700/50 text-slate-200 hover:bg-slate-600/50'}`}
onClick={()=>{logUserAction('navigation', 'Tab switch', { from: tab, to: 'error' }); setTab('error')}}
>
Error
</button>
{authedPlayer === 'gm' && (
<>
<button
className={`px-4 py-2 rounded-lg font-medium transition-all ${tab==='mission' ? 'bg-blue-600 text-white shadow-lg' : 'bg-slate-700/50 text-slate-200 hover:bg-slate-600/50'}`}

View File

@@ -48,7 +48,7 @@ export default function ErrorReports({ authedPlayer, sessionId }) {
};
const handleDelete = async (id) => {
if (!confirm('Delete this error report?')) return;
if (!window.confirm('Delete this error report?')) return;
try {
await axios.delete(`/api/errors/${id}`, { headers });
fetchReports();