Skip to content

Commit

Permalink
Recover preview
Browse files Browse the repository at this point in the history
  • Loading branch information
dfalbel committed Oct 15, 2024
1 parent 60bb196 commit 748ddba
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,13 @@ class PositronConnectionEntry extends Disposable implements IPositronConnectionE
}

get preview() {
if (this.item.preview) {
if (!this.item.preview) {
return undefined;
}


return async () => {
try {
this.item.preview?.();
await this.item.preview?.();
} catch (err: any) {
this.notify(
`Error previewing object ${this.id}: ${err.message}`,
Expand Down

0 comments on commit 748ddba

Please sign in to comment.