This commit is contained in:
Timothy Jaeryang Baek
2026-03-21 17:45:36 -05:00
parent 85411e4867
commit 4c8615f01c
4 changed files with 22 additions and 4 deletions
@@ -4,6 +4,7 @@
const i18n = getContext('i18n');
import { nameToId } from '$lib/utils';
import CodeEditor from '$lib/components/common/CodeEditor.svelte';
import ConfirmDialog from '$lib/components/common/ConfirmDialog.svelte';
import Badge from '$lib/components/common/Badge.svelte';
@@ -36,7 +37,7 @@
};
$: if (name && !edit && !clone) {
id = name.replace(/\s+/g, '_').toLowerCase();
id = nameToId(name);
}
let codeEditor;