Skip to content

Commit 43872fb

Browse files
committed
fix: missing waited promise
Signed-off-by: Jeff MAURY <[email protected]>
1 parent d54fc5a commit 43872fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/backend/src/studio-api-impl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ export class StudioApiImpl implements StudioAPI {
8787
// Do not wait on the promise as the api would probably timeout before the user answer.
8888
podmanDesktopApi.window
8989
.showWarningMessage(`Are you sure you want to delete this playground ?`, 'Confirm', 'Cancel')
90-
.then((result: string | undefined) => {
90+
.then(async (result: string | undefined) => {
9191
if (result === 'Confirm') {
92-
this.playgroundV2.deleteConversation(conversationId);
92+
await this.playgroundV2.deleteConversation(conversationId);
9393
}
9494
})
9595
.catch((err: unknown) => {

0 commit comments

Comments
 (0)