Skip to content

Commit d07e1c2

Browse files
committed
fix: handle undefined validation settings
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 225ef20 commit d07e1c2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/views/Settings/Validation.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ const urlInput = ref<HTMLInputElement | null>(null)
9999
const footerTemplateEditor = ref<FooterTemplateEditorInstance | null>(null)
100100
101101
function parseBooleanSetting(value: string | boolean | number | undefined) {
102+
if (value === undefined) {
103+
return false
104+
}
102105
return ['true', true, '1', 1].includes(value)
103106
}
104107

0 commit comments

Comments
 (0)