Skip to content

Commit

Permalink
chore: finally null
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanVor committed Dec 16, 2024
1 parent 92c2b53 commit 56ddf8c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion clients/ai-assistants-v1/sdk/threadSdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ export class ThreadWithSdk {

public refreshData() {
if (this.threadP === null) {
this.threadP = this.threadSdk.get({ threadId: this.thread.id });
this.threadP = this.threadSdk
.get({ threadId: this.thread.id })
.finally(() => (this.threadP = null));

this.threadP.then(this.updateData.bind(this));
}

Expand Down

0 comments on commit 56ddf8c

Please sign in to comment.