From fdc2bc899dd8a157631936608318ee6469672932 Mon Sep 17 00:00:00 2001 From: Nicolas Van Labeke Date: Mon, 25 Nov 2024 10:07:36 +0000 Subject: [PATCH] fix(27215): fix typo --- .../src/components/rjsf/Form/validation.utils.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/hivemq-edge/src/frontend/src/components/rjsf/Form/validation.utils.ts b/hivemq-edge/src/frontend/src/components/rjsf/Form/validation.utils.ts index dd921635c8..2fa62b938c 100644 --- a/hivemq-edge/src/frontend/src/components/rjsf/Form/validation.utils.ts +++ b/hivemq-edge/src/frontend/src/components/rjsf/Form/validation.utils.ts @@ -109,17 +109,17 @@ export const validationTag = validationTopic export const customLocalizer = (errors?: null | ErrorObject[]) => { if (!errors) return - for (const aa of errors) { - if (aa.keyword !== 'format') continue - if (aa.schema === 'mqtt-topic') { - aa.message = validationTopic(aa.data as string) + for (const error of errors) { + if (error.keyword !== 'format') continue + if (error.schema === 'mqtt-topic') { + error.message = validationTopic(error.data as string) continue } - if (aa.schema === 'mqtt-topic-filter') { - aa.message = validationTopicFilter(aa.data as string) + if (error.schema === 'mqtt-topic-filter') { + error.message = validationTopicFilter(error.data as string) } - if (aa.schema === 'mqtt-tag') { - aa.message = validationTag(aa.data as string) + if (error.schema === 'mqtt-tag') { + error.message = validationTag(error.data as string) } } }