⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
fix: preserve compact board task response shape
Tina84c176bc569
diff --git a/apps/api/src/task/controllers/get-task.ts b/apps/api/src/task/controllers/get-task.tsindex 00ef30e50..001523fb0 100644--- a/apps/api/src/task/controllers/get-task.ts+++ b/apps/api/src/task/controllers/get-task.ts@@ -48,9 +48,9 @@ async function getTask(taskId: string, board = false) {});}- const result = task[0];- const { workspaceId } = result;- if (!board || !workspaceId) return result;+ if (!board) return task[0];+ const { workspaceId, ...result } = task[0];+ if (!workspaceId) return result;const parent = alias(taskTable, "parent");const parents = await db.selectDistinct({ id: parent.id })diff --git a/apps/api/src/task/response.ts b/apps/api/src/task/response.tsindex 3e4932900..d7238a921 100644--- a/apps/api/src/task/response.ts+++ b/apps/api/src/task/response.ts@@ -37,8 +37,9 @@ export const taskSchema = zexport const taskWithAssigneeSchema = taskSchema.extend({- workspaceId: z.string().openapi({- description: "The workspace currently owning the task's project.",+ workspaceId: z.string().optional().openapi({+ description:+ "The workspace currently owning the task's project. Included in the detail view; omitted from the compact board view.",}),columnId: z.string().nullable().openapi({description:diff --git a/apps/docs/openapi.json b/apps/docs/openapi.jsonindex 1efe9f4da..511d34907 100644--- a/apps/docs/openapi.json+++ b/apps/docs/openapi.json@@ -1175,7 +1175,7 @@"properties": {"workspaceId": {"type": "string",- "description": "The workspace currently owning the task's project."+ "description": "The workspace currently owning the task's project. Included in the detail view; omitted from the compact board view."},"columnId": {"type": [@@ -1235,7 +1235,6 @@}},"required": [- "workspaceId","columnId","assigneeName","assigneeId"