From a27cd548385bc4e7de864ff3ff93715bc0501e85 Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Mon, 8 Aug 2022 14:19:16 +0200 Subject: [PATCH] api: return defaultValue in useParameter if story is not prepared it was returning an empty object before, which is a breaking change. --- code/lib/api/src/modules/stories.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/code/lib/api/src/modules/stories.ts b/code/lib/api/src/modules/stories.ts index ea4215ebcaec..ef1d5aa68641 100644 --- a/code/lib/api/src/modules/stories.ts +++ b/code/lib/api/src/modules/stories.ts @@ -162,8 +162,6 @@ export const init: ModuleFn = ({ if (parameters) { return parameterName ? parameters[parameterName] : parameters; } - - return {}; } return null;