Skip to content

Commit

Permalink
Remove unnecessary await
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Jan 8, 2024
1 parent 03cf69c commit 8bd86ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/lib/preview-api/src/modules/preview-web/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export class Preview<TRenderer extends Renderer> {
return;
}

await this.storyStore.setProjectAnnotations(projectAnnotations);
this.storyStore.setProjectAnnotations(projectAnnotations);
this.emitGlobals();
}

Expand All @@ -204,7 +204,7 @@ export class Preview<TRenderer extends Renderer> {

// 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.
Expand Down

0 comments on commit 8bd86ad

Please sign in to comment.