Skip to content

Commit 08c4df4

Browse files
committed
Make storybook accessible on local network
1 parent 1e967af commit 08c4df4

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

frontend/viewer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"lint:report": "eslint . --output-file eslint_report.json --format json",
3636
"i18n:extract": "lingui extract --clean && lingui extract",
3737
"generate-icon-types": "node ./generate-icon-types.js",
38-
"storybook": "storybook dev -p 6006",
38+
"storybook": "storybook dev -p 6006 --host 0.0.0.0",
3939
"build-storybook": "storybook build"
4040
},
4141
"devDependencies": {

frontend/viewer/src/project/NewEntryButton.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
} = $props();
3434
3535
const features = useFeatures();
36-
const id = crypto.randomUUID();
36+
const id = $props.id();
3737
const isActive = $derived(
3838
// explicitly active
3939
instances[id] === true ||

frontend/viewer/src/stories/editor/entity-primitives/entry-editor-primitive.stories.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import {tick} from 'svelte';
99
1010
let entry: IEntry = $state({
11-
id: crypto.randomUUID(),
11+
id: '36b8f84d-df4e-4d49-b662-bcde71a8764f',
1212
lexemeForm: {
1313
'seh': 'Lexeme form',
1414
},

0 commit comments

Comments
 (0)