Skip to content

Commit

Permalink
Merge pull request storybookjs#10917 from storybookjs/fix/10519
Browse files Browse the repository at this point in the history
UI: Fix search in production mode
  • Loading branch information
shilman authored Jun 8, 2020
2 parents 3cd5125 + 9e1537e commit 5caae38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/src/client/preview/loadCsf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const loadStories = (
fileExports,
// todo discuss: types infer that this is RequireContext; no checks needed?
// NOTE: turns out `babel-plugin-require-context-hook` doesn't implement this (yet)
typeof req.resolve === 'function' ? req.resolve(filename) : null
typeof req.resolve === 'function' ? req.resolve(filename) : filename
);
} catch (error) {
logger.warn(`Unexpected error: ${error}`);
Expand Down

0 comments on commit 5caae38

Please sign in to comment.