Skip to content

Commit

Permalink
Yarn - Fix incorrect package type (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
Or-Geva authored Sep 20, 2023
1 parent f5b3477 commit 793e1d8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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;
}
Expand Down

0 comments on commit 793e1d8

Please sign in to comment.