Skip to content

Commit 15a557e

Browse files
committed
fix: missing waited promise
Signed-off-by: Jeff MAURY <[email protected]>
1 parent 0b1eae2 commit 15a557e

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
@@ -81,9 +81,9 @@ export class StudioApiImpl implements StudioAPI {
8181
// Do not wait on the promise as the api would probably timeout before the user answer.
8282
podmanDesktopApi.window
8383
.showWarningMessage(`Are you sure you want to delete this playground ?`, 'Confirm', 'Cancel')
84-
.then((result: string | undefined) => {
84+
.then(async (result: string | undefined) => {
8585
if (result === 'Confirm') {
86-
this.playgroundV2.deleteConversation(conversationId);
86+
await this.playgroundV2.deleteConversation(conversationId);
8787
}
8888
})
8989
.catch((err: unknown) => {

0 commit comments

Comments
 (0)