mirror of
https://github.com/whyour/qinglong.git
synced 2025-12-16 17:35:37 +08:00
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>
This commit is contained in:
parent
33fa3aca99
commit
c61d1aa828
|
|
@ -107,7 +107,7 @@ export default class DependenceService {
|
|||
query: any = {},
|
||||
): Promise<Dependence[]> {
|
||||
let condition = query;
|
||||
if (DependenceTypes[type]) {
|
||||
if (type && DependenceTypes[type] !== undefined) {
|
||||
condition.type = DependenceTypes[type];
|
||||
}
|
||||
if (status) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user