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".
This commit is contained in:
2026-02-03 20:09:45 +01:00
parent ca15266fb9
commit a9dbbd65a4

View File

@@ -728,8 +728,8 @@ export default function App() {
<div style={{ display: "grid" }}>
{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);