Skip to content

Commit

Permalink
feat: stricter check on csf files
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyhw committed May 30, 2021
1 parent f7b5fee commit 99bce77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/react-native/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function writeRequires(paths) {
import { configure } from '@storybook/react-native';
const paths = ${path_array_str}
const getCSFStories=() => {
return paths.filter((exports) => !!exports.default);
return paths.filter((exports) => !!exports.default?.title);
}
configure("react-native", getCSFStories, module, true)
Expand Down

0 comments on commit 99bce77

Please sign in to comment.