[PR #526] [MERGED] Issue #204 Added a check to ensure that 'chunk.payload' exists and contains the 'id' property #3383

Closed
opened 2026-02-22 18:33:40 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/526
Author: @isayandev
Created: 1/4/2024
Status: Merged
Merged: 1/4/2024
Merged by: @timothycarambat

Base: masterHead: isayandev-204


📝 Commits (3)

  • c740f8a Issue #204 Added a check to ensure that 'chunk.payload' exists and contains the 'id' property before attempting to destructure it
  • 7ba6edc run linter
  • 55e3773 simplify condition and comment

📊 Changes

1 file changed (+12 additions, -5 deletions)

View changed files

📝 server/utils/vectorDbProviders/qdrant/index.js (+12 -5)

📄 Description

I added a check (if (chunk.payload && chunk.payload.id)) to ensure that 'chunk.payload' exists and contains the 'id' property before attempting to destructure it.
If the check fails, an error message is logged, and you can handle the situation accordingly.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/526 **Author:** [@isayandev](https://github.com/isayandev) **Created:** 1/4/2024 **Status:** ✅ Merged **Merged:** 1/4/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `isayandev-204` --- ### 📝 Commits (3) - [`c740f8a`](https://github.com/Mintplex-Labs/anything-llm/commit/c740f8ac7ebea0c3217f6a158e1870a0788c3a0a) Issue #204 Added a check to ensure that 'chunk.payload' exists and contains the 'id' property before attempting to destructure it - [`7ba6edc`](https://github.com/Mintplex-Labs/anything-llm/commit/7ba6edc327c7499d82a215c752d1973533b0b1f4) run linter - [`55e3773`](https://github.com/Mintplex-Labs/anything-llm/commit/55e377380c4d694177a8c4ea1f8ab4dad829bc2c) simplify condition and comment ### 📊 Changes **1 file changed** (+12 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `server/utils/vectorDbProviders/qdrant/index.js` (+12 -5) </details> ### 📄 Description I added a check (if (chunk.payload && chunk.payload.id)) to ensure that 'chunk.payload' exists and contains the 'id' property before attempting to destructure it. If the check fails, an error message is logged, and you can handle the situation accordingly. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:33:40 -05:00
yindo closed this issue 2026-02-22 18:33:40 -05:00
yindo changed title from [PR #526] Issue #204 Added a check to ensure that 'chunk.payload' exists and contains the 'id' property to [PR #526] [MERGED] Issue #204 Added a check to ensure that 'chunk.payload' exists and contains the 'id' property 2026-06-05 15:13:07 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#3383