---
title: Handover — P0-2 Fix Planner Crash
date: 2026-05-07
status: done
commit: 75c7863
---

## What changed
- `web/src/types/index.ts:36`: `tags: TagBrief[]` → `tags?: TagBrief[]` (optional)
- `web/src/components/tasks/TaskCard.vue:57`: `task.tags.length` → `task.tags?.length`

## Why
Backend TaskOut schema never returns tags field → `task.tags` is undefined → `.length` throws TypeError.
Tags are stored in DB but not yet serialized; making type optional is the correct minimal fix
since tags feature is unused (always empty array).

## Verified
- `npm run build` — clean, 75c7863
- `git push origin main`

## Deploy needed
```bash
ssh optical-dev "bash /opt/cc-dashboard/deploy.sh"
```
(can batch both P0-1 and P0-2 in one deploy)

## Next subtask  
**P0-3**: Расследовать пустые данные в проектах.  
Нужен доступ к БД: `docker exec cc-dashboard-postgres-1 psql ...`  
Запросить пользователя запустить SQL и прислать результаты.
