From 8bd86ad452aa5f3b385ef8986165a85656db7eb1 Mon Sep 17 00:00:00 2001 From: Valentin Palkovic Date: Mon, 8 Jan 2024 15:56:29 +0100 Subject: [PATCH] Remove unnecessary await --- code/lib/preview-api/src/modules/preview-web/Preview.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/lib/preview-api/src/modules/preview-web/Preview.tsx b/code/lib/preview-api/src/modules/preview-web/Preview.tsx index c5964131fad0..e55681bf9d18 100644 --- a/code/lib/preview-api/src/modules/preview-web/Preview.tsx +++ b/code/lib/preview-api/src/modules/preview-web/Preview.tsx @@ -186,7 +186,7 @@ export class Preview { return; } - await this.storyStore.setProjectAnnotations(projectAnnotations); + this.storyStore.setProjectAnnotations(projectAnnotations); this.emitGlobals(); } @@ -204,7 +204,7 @@ export class Preview { // This is the first time the story index worked, let's load it into the store if (!this.storyStore.storyIndex) { - await this.initializeWithStoryIndex(storyIndex); + this.initializeWithStoryIndex(storyIndex); } // Update the store with the new stories.