Skip to content

Commit 58f6532

Browse files
authored
fix(editor): Defer crypto.randomUUID call in CodeNodeEditor (#12630)
1 parent e9c152e commit 58f6532

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/editor-ui/src/components/CodeNodeEditor/CodeNodeEditor.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const props = withDefaults(defineProps<Props>(), {
3737
language: 'javaScript',
3838
isReadOnly: false,
3939
rows: 4,
40-
id: crypto.randomUUID(),
40+
id: () => crypto.randomUUID(),
4141
});
4242
const emit = defineEmits<{
4343
'update:modelValue': [value: string];

0 commit comments

Comments
 (0)