From fac6b5b980b7b3479fd20638ddc5ee0e4d46ba53 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 8 Jan 2022 14:49:18 +0000 Subject: [PATCH] fix: should persist selection by default --- app/react-native/src/preview/Preview.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/react-native/src/preview/Preview.tsx b/app/react-native/src/preview/Preview.tsx index feaa91fcd3..76b0617ed6 100644 --- a/app/react-native/src/preview/Preview.tsx +++ b/app/react-native/src/preview/Preview.tsx @@ -85,7 +85,7 @@ export default class Preview { }; getStorybookUI = (params: Partial = {}) => { - const { initialSelection, shouldPersistSelection } = params; + const { initialSelection, shouldPersistSelection = true } = params; this._setInitialStory(initialSelection, shouldPersistSelection); this._channel.on(Events.SET_CURRENT_STORY, (d: { storyId: string }) => {