Skip to content

Commit b6672a3

Browse files
Merge pull request #31 from pinanks/DOT-1125
DOT-1125
2 parents 2af343c + 5d9d71b commit b6672a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

commands/utils/dom.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ async function sendDoM(storybookUrl, stories, storybookConfig, options) {
5454
const form = new formData();
5555
for (const [storyId, storyInfo] of Object.entries(stories)) {
5656
const file = fs.readFileSync('doms/' + storyId + '.html');
57-
form.append('files', file, {filepath: storyInfo.kind + ': ' + storyInfo.name + '.html'});
57+
filename = storyInfo.kind.replaceAll('/', '#') + ': ' + storyInfo.name;
58+
form.append('files', file, filename+'.html');
5859
}
5960
form.append('resolution', storybookConfig.resolutions);
6061
form.append('browser', storybookConfig.browsers);

0 commit comments

Comments
 (0)