Null check

This commit is contained in:
rxdn 2022-06-19 01:46:13 +01:00
parent 6d34a27d53
commit f3a4cd00b8

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 !== null && data.naming_scheme.includes(' ')) {
data.naming_scheme = data.naming_scheme.replaceAll(' ', '-'); data.naming_scheme = data.naming_scheme.replaceAll(' ', '-');
} }