From a9dbbd65a4200149c6a46fef339757d05f1c4f84 Mon Sep 17 00:00:00 2001 From: nessi Date: Tue, 3 Feb 2026 20:09:45 +0100 Subject: [PATCH] Update status logic to include "m" in note_tag checks Previously, only "i" and "s" were considered in the note_tag check for determining effectiveStatus. This update adds "m" to the condition, ensuring accurate status handling for entries with note_tag "m". --- frontend/src/App.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 0dad8b0..572e7d4 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -728,8 +728,8 @@ export default function App() {
{sec.entries.map((e) => { // UI "rot" wenn note_tag i oder s (Backend s wird als s.XX angezeigt) - const isIorS = e.note_tag === "i" || e.note_tag === "s"; - const effectiveStatus = e.status === 0 && isIorS ? 1 : e.status; + const isIorMorS = e.note_tag === "i" || e.note_tag === "m" || e.note_tag === "s"; + const effectiveStatus = e.status === 0 && isIorMorS ? 1 : e.status; const badge = getStatusBadge(effectiveStatus);