Skip to content

fix(ai-summary): use empty lists when the backend responds with nulls - #708

Open
sseu-buhzzi wants to merge 1 commit into
DanXi-Dev:mainfrom
sseu-buhzzi:20260909/fix-ai-summary-fields
Open

fix(ai-summary): use empty lists when the backend responds with nulls#708
sseu-buhzzi wants to merge 1 commit into
DanXi-Dev:mainfrom
sseu-buhzzi:20260909/fix-ai-summary-fields

Conversation

@sseu-buhzzi

@sseu-buhzzi sseu-buhzzi commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

The backend can responds with:

{
  code: 1001,
  message: "processing",
  data: {
    hole_id: 0,
    trace_id: "",
    summary: "",
    branches: null,
    interactions: null,
    keywords: null,
    generated_at: "",
  },
}

Therefore default values are needed for backend-nullable fields. Or as another fix, the backend can return data as null or {}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant