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 committed Oct 24, 2022
1 parent 17469d3 commit 6836188
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions lib/core-server/src/build-static.ts
Expand Up @@ -123,11 +123,7 @@ export async function buildStaticStandalone(options: CLIOptions & LoadOptions &
const core = await presets.apply<CoreConfig>('core');
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
6 changes: 1 addition & 5 deletions lib/core-server/src/dev-server.ts
Expand Up @@ -76,11 +76,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 6836188

Please sign in to comment.