From 07584faa58c280503506228d141cb4498f086b24 Mon Sep 17 00:00:00 2001 From: wenincode Date: Fri, 13 Oct 2023 16:26:36 -0600 Subject: [PATCH] Fix undefined hash in validate addon --- ui/packages/consul-ui/app/modifiers/validate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/packages/consul-ui/app/modifiers/validate.js b/ui/packages/consul-ui/app/modifiers/validate.js index 18ccb7f7c5..562cdf7dc0 100644 --- a/ui/packages/consul-ui/app/modifiers/validate.js +++ b/ui/packages/consul-ui/app/modifiers/validate.js @@ -103,10 +103,10 @@ export default class ValidateModifier extends Modifier { dispatch: (state) => { switch (state) { case 'ERROR': - _hash.onchange(this.hash.chart.state.context.errors); + this.hash.onchange(this.hash.chart.state.context.errors); break; case 'RESET': - _hash.onchange(); + this.hash.onchange(); break; } },