diff --git a/client/src/components/Packing/PackingListPanelCategoryGroup.tsx b/client/src/components/Packing/PackingListPanelCategoryGroup.tsx index ac2521749..8b6010312 100644 --- a/client/src/components/Packing/PackingListPanelCategoryGroup.tsx +++ b/client/src/components/Packing/PackingListPanelCategoryGroup.tsx @@ -129,7 +129,7 @@ export function KategorieGruppe({ kategorie, items, tripId, allCategories, onRen autoFocus value={editKatName} onChange={e => setEditKatName(e.target.value)} onBlur={handleSaveKatName} - onKeyDown={e => { if (e.key === 'Enter') handleSaveKatName(); if (e.key === 'Escape') { setEditingName(false); setEditKatName(kategorie) } }} + onKeyDown={e => { if (e.key === 'Enter') void handleSaveKatName(); if (e.key === 'Escape') { setEditingName(false); setEditKatName(kategorie) } }} style={{ flex: 1, fontSize: 'calc(14px * var(--fs-scale-body, 1))', fontWeight: 700, border: 'none', borderBottom: '2px solid var(--text-primary)', outline: 'none', background: 'transparent', fontFamily: 'inherit', color: 'var(--text-primary)', padding: '0 2px' }} /> ) : ( @@ -171,7 +171,7 @@ export function KategorieGruppe({ kategorie, items, tripId, allCategories, onRen return ( @@ -200,7 +200,7 @@ export function KategorieGruppe({ kategorie, items, tripId, allCategories, onRen const newIds = isAssigned ? assignees.filter(a => a.user_id !== m.id).map(a => a.user_id) : [...assignees.map(a => a.user_id), m.id] - onSetAssignees(kategorie, newIds) + void onSetAssignees(kategorie, newIds) }} style={{ display: 'flex', alignItems: 'center', gap: 8, width: '100%', @@ -258,8 +258,8 @@ export function KategorieGruppe({ kategorie, items, tripId, allCategories, onRen
setShowMenu(false)} />
{canEdit && } label={t('packing.menuRename')} onClick={() => { setEditingName(true); setShowMenu(false) }} />} - } label={t('packing.menuCheckAll')} onClick={() => { handleCheckAll(); setShowMenu(false) }} /> - } label={t('packing.menuUncheckAll')} onClick={() => { handleUncheckAll(); setShowMenu(false) }} /> + } label={t('packing.menuCheckAll')} onClick={() => { void handleCheckAll(); setShowMenu(false) }} /> + } label={t('packing.menuUncheckAll')} onClick={() => { void handleUncheckAll(); setShowMenu(false) }} /> {canEdit && <>
} label={t('packing.menuDeleteCat')} danger onClick={handleDeleteAll} /> @@ -308,7 +308,7 @@ export function KategorieGruppe({ kategorie, items, tripId, allCategories, onRen onChange={e => setNewItemName(e.target.value)} onKeyDown={e => { if (e.key === 'Enter' && newItemName.trim()) { - onAddItem(kategorie, newItemName.trim()) + void onAddItem(kategorie, newItemName.trim()) setNewItemName('') setTimeout(() => addItemRef.current?.focus(), 30) } @@ -318,7 +318,7 @@ export function KategorieGruppe({ kategorie, items, tripId, allCategories, onRen style={{ flex: 1, minWidth: 0, padding: '5px 0', border: 'none', fontSize: 'calc(13.5px * var(--fs-scale-body, 1))', fontWeight: 500, fontFamily: 'inherit', outline: 'none', color: 'var(--text-primary)', background: 'transparent' }} /> {/* disabled while the field is empty, so no extra guard here */} -