Skip to content

Commit

Permalink
chore: Fix ts compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Quramy committed Sep 17, 2024
1 parent 6727375 commit 83c6154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/storycap/src/shared/screenshot-options-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function expandViewportsOption(options: ScreenshotOptions) {

const getVp = (vpName: string) => (Array.isArray(viewports) ? vpName : viewports[vpName]);

const variants = { ...options.variants } || {};
const variants = { ...options.variants };
viewportNames.slice(1).forEach(vpName => (variants[vpName] = { viewport: getVp(vpName) }));
ret.viewport = getVp(viewportNames[0]);
ret.variants = variants;
Expand Down

0 comments on commit 83c6154

Please sign in to comment.