From c66cf40eb8dff67e39b4c8529a5b88bffa46c0f4 Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Mon, 21 Aug 2023 16:00:32 +0200 Subject: [PATCH] fix coerce checking --- code/lib/core-events/src/errors/storybook-error.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/lib/core-events/src/errors/storybook-error.ts b/code/lib/core-events/src/errors/storybook-error.ts index 3a0abbf463f5..d7b994c61d42 100644 --- a/code/lib/core-events/src/errors/storybook-error.ts +++ b/code/lib/core-events/src/errors/storybook-error.ts @@ -53,6 +53,6 @@ export abstract class StorybookError extends Error { page = this.documentation; } - return this.template() + (page != null ? `\n\nMore info: ${page}` : ''); + return this.template() + (page !== null ? `\n\nMore info: ${page}` : ''); } }