diff --git a/CHANGELOG.md b/CHANGELOG.md index eb1d08887aba..6283eba4f47b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 10.1.9 + +- Telemetry: Remove instance of check for sub-error handling - [#33356](https://github.com/storybookjs/storybook/pull/33356), thanks @valentinpalkovic! + ## 10.1.8 - React-Vite: Update @joshwooding/vite-plugin-react-docgen-typescript - [#33349](https://github.com/storybookjs/storybook/pull/33349), thanks @valentinpalkovic! diff --git a/code/core/src/core-server/withTelemetry.ts b/code/core/src/core-server/withTelemetry.ts index d15cee2560d8..a7e77bd42e83 100644 --- a/code/core/src/core-server/withTelemetry.ts +++ b/code/core/src/core-server/withTelemetry.ts @@ -137,11 +137,9 @@ export async function sendTelemetryError( ); // If this is a StorybookError with sub-errors, send telemetry for each sub-error separately - if (error instanceof StorybookError && error.subErrors.length > 0) { + if (error && 'subErrors' in error && error.subErrors.length > 0) { for (const subError of error.subErrors) { - if (subError instanceof StorybookError) { - await sendTelemetryError(subError, eventType, options, blocking, error); - } + await sendTelemetryError(subError, eventType, options, blocking, error as StorybookError); } } } diff --git a/code/package.json b/code/package.json index 588f94aa8092..2832d14d4426 100644 --- a/code/package.json +++ b/code/package.json @@ -286,5 +286,6 @@ "Dependency Upgrades" ] ] - } + }, + "deferredNextVersion": "10.1.9" } diff --git a/docs/versions/latest.json b/docs/versions/latest.json index 99ca5ac2fb18..1b1e4a906e8a 100644 --- a/docs/versions/latest.json +++ b/docs/versions/latest.json @@ -1 +1 @@ -{"version":"10.1.8","info":{"plain":"- React-Vite: Update @joshwooding/vite-plugin-react-docgen-typescript - [#33349](https://github.com/storybookjs/storybook/pull/33349), thanks @valentinpalkovic!"}} \ No newline at end of file +{"version":"10.1.9","info":{"plain":"- Telemetry: Remove instance of check for sub-error handling - [#33356](https://github.com/storybookjs/storybook/pull/33356), thanks @valentinpalkovic!"}} \ No newline at end of file