remove console.log(

This commit is contained in:
Romulus21
2023-09-24 16:13:28 +02:00
parent 00e7bd1808
commit f32e1600a8
5 changed files with 1 additions and 5 deletions

View File

@@ -12,7 +12,6 @@ export function displayFormErrors(error: any, form: HTMLElement|null = null) {
export function displayError(key: string, message: string, form: HTMLElement|null = null) {
const formBase = (form) ? form : document
const input = formBase.querySelector(`input[name="${key}"], select[name="${key}"], textarea[name="${key}"]`)
console.log(input)
if (input) {
const formControl = input.closest('.form-control')
if (formControl) {