Update PanelCreationForm.svelte

This commit is contained in:
Ryan 2022-06-19 00:56:14 +01:00 committed by GitHub
parent 6d34a27d53
commit fe8fa45524
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,7 +174,7 @@
let selectedMentions = []; let selectedMentions = [];
// Replace spaces with dashes in naming scheme as the user types // Replace spaces with dashes in naming scheme as the user types
$: if (data.naming_scheme.includes(' ')) { $: if (data.naming_scheme !== undefined && data.naming_scheme.includes(' ')) {
data.naming_scheme = data.naming_scheme.replaceAll(' ', '-'); data.naming_scheme = data.naming_scheme.replaceAll(' ', '-');
} }