From c61d1aa828a19f0c049fd016a9f79a74631405f2 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Mon, 15 Dec 2025 18:21:14 +0800 Subject: [PATCH] Fix enum value 0 causing type filter to fail for NodeJS dependencies (#2869) * Initial plan * Fix: Prevent Python3 dependencies from appearing in NodeJs tab Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --- back/services/dependence.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/services/dependence.ts b/back/services/dependence.ts index 1cb7e559..eac054be 100644 --- a/back/services/dependence.ts +++ b/back/services/dependence.ts @@ -107,7 +107,7 @@ export default class DependenceService { query: any = {}, ): Promise { let condition = query; - if (DependenceTypes[type]) { + if (type && DependenceTypes[type] !== undefined) { condition.type = DependenceTypes[type]; } if (status) {