Skip to content

Commit

Permalink
[TA-2736] Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LaberionAjvazi committed Jan 23, 2024
1 parent d807d01 commit 768d669
Show file tree
Hide file tree
Showing 6 changed files with 553 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/services/studio/studio.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class StudioService {
private getConnectionVariablesForPackage(packageKey: string, packageVersion: string, variables: VariableManifestTransport[]): VariableExportTransport[] {
const packageVariables = variables.find(exportedVariable => exportedVariable.packageKey === packageKey && exportedVariable.version === packageVersion);

if (packageVariables.variables.length) {
if (packageVariables && packageVariables.variables.length) {
return packageVariables.variables.filter(variable => variable.type === PackageManagerVariableType.CONNECTION);
}

Expand Down
Loading

0 comments on commit 768d669

Please sign in to comment.