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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user