Skip to content

Commit

Permalink
Merge pull request #19507 from storybookjs/fix-v6-telemetry
Browse files Browse the repository at this point in the history
Telemetry: Send start/build events even when there is no generator
  • Loading branch information
shilman authored Oct 17, 2022
2 parents 7a4d317 + 2abd054 commit 53c74e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions code/lib/core-server/src/build-static.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,7 @@ export async function buildStaticStandalone(
if (!core?.disableTelemetry) {
effects.push(
initializedStoryIndexGenerator.then(async (generator) => {
if (!generator) {
return;
}

const storyIndex = await generator.getIndex();
const storyIndex = await generator?.getIndex();
const payload = storyIndex
? {
storyIndex: {
Expand Down
6 changes: 1 addition & 5 deletions code/lib/core-server/src/dev-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,7 @@ export async function storybookDevServer(options: Options) {

if (!core?.disableTelemetry) {
initializedStoryIndexGenerator.then(async (generator) => {
if (!generator) {
return;
}

const storyIndex = await generator.getIndex();
const storyIndex = await generator?.getIndex();
const payload = storyIndex
? {
storyIndex: {
Expand Down

0 comments on commit 53c74e7

Please sign in to comment.