From 793e1d8a44f1e3fa751ab872ea0c98ebb934c8ca Mon Sep 17 00:00:00 2001 From: Or Geva Date: Wed, 20 Sep 2023 11:35:31 +0300 Subject: [PATCH] Yarn - Fix incorrect package type (#409) --- .../issuesTree/descriptorTree/dependencyIssuesTreeNode.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/treeDataProviders/issuesTree/descriptorTree/dependencyIssuesTreeNode.ts b/src/main/treeDataProviders/issuesTree/descriptorTree/dependencyIssuesTreeNode.ts index 3a2567f73..6bd678e90 100644 --- a/src/main/treeDataProviders/issuesTree/descriptorTree/dependencyIssuesTreeNode.ts +++ b/src/main/treeDataProviders/issuesTree/descriptorTree/dependencyIssuesTreeNode.ts @@ -1,6 +1,6 @@ import * as vscode from 'vscode'; import { ILicense } from 'jfrog-ide-webview'; -import { PackageType, toPackageType } from '../../../types/projectType'; +import { PackageType } from '../../../types/projectType'; import { Severity, SeverityUtils } from '../../../types/severity'; import { IComponent } from 'jfrog-client-js'; import { CveTreeNode } from './cveTreeNode'; @@ -24,7 +24,7 @@ export class DependencyIssuesTreeNode extends vscode.TreeItem { this._name = component.package_name; this._version = component.package_version; - this._type = toPackageType(component.package_type); + this._type = _parent.type this.description = this._version + (_indirect ? ' (indirect)' : ''); this.contextValue += ContextKeys.COPY_TO_CLIPBOARD_ENABLED; }