fix: address linting issues in LeadThoughtsGroup and TaskAttachments components

- Added an eslint-disable comment in LeadThoughtsGroupRow to clarify intentional state updates in useEffect.
- Removed unnecessary eslint-disable comment in TaskAttachments to clean up the codebase.
This commit is contained in:
iliya 2026-03-06 00:02:27 +02:00
parent 7afe5d4d59
commit 410cb8a10f
2 changed files with 1 additions and 1 deletions

View file

@ -139,6 +139,7 @@ export const LeadThoughtsGroupRow = ({
const [isLive, setIsLive] = useState(computeIsLive);
useEffect(() => {
// eslint-disable-next-line react-hooks/set-state-in-effect -- intentional immediate sync to avoid 1s stale gap
setIsLive(computeIsLive());
const id = window.setInterval(() => setIsLive(computeIsLive()), 1000);
return () => window.clearInterval(id);

View file

@ -219,7 +219,6 @@ export const TaskAttachments = ({
void handlePreview(att);
}}
onDelete={() => {
// eslint-disable-next-line sonarjs/void-use -- void needed to mark floating promise
void handleDelete(att.id, att.mimeType);
}}
onDataLoaded={handleThumbLoaded}