Skip to content

Commit

Permalink
Don't show deeplinks for undeployed resources (#1043)
Browse files Browse the repository at this point in the history
Don't show deeplinks for undeployed resources
  • Loading branch information
ilia-db authored Feb 6, 2024
1 parent 5b1eb9b commit 62a47e3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class JobTreeNode implements BundleResourceExplorerTreeNode {
get url(): string | undefined {
const host = this.connectionManager.databricksWorkspace?.host;

if (host === undefined) {
if (!host || !this.data.id) {
return undefined;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class PipelineTreeNode implements BundleResourceExplorerTreeNode {
get url(): string | undefined {
const host = this.connectionManager.databricksWorkspace?.host;

if (host === undefined) {
if (!host || !this.data.id) {
return undefined;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class TaskTreeNode implements BundleResourceExplorerTreeNode {

get url(): string | undefined {
const host = this.connectionManager.databricksWorkspace?.host;
if (host === undefined || this.taskKey === undefined) {
if (!host || !this.jobId || !this.taskKey) {
return undefined;
}

Expand Down

0 comments on commit 62a47e3

Please sign in to comment.