From 6c42f3f56cefc77da8dc0479442dc0aee639f99d Mon Sep 17 00:00:00 2001 From: Assunta DeSanto Date: Wed, 31 Aug 2022 23:16:33 -0400 Subject: [PATCH] adding a watch on the value for group count to validate that it is a natural number --- client/src/components/RuleCollectionBuilder.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/src/components/RuleCollectionBuilder.vue b/client/src/components/RuleCollectionBuilder.vue index cb82c51131a..ab4ae62bf69 100644 --- a/client/src/components/RuleCollectionBuilder.vue +++ b/client/src/components/RuleCollectionBuilder.vue @@ -1148,6 +1148,13 @@ export default { this.addColumnRegexReplacement = null; } }, + addColumnRegexGroupCount: function (oldVal, newVal) { + if (oldVal != newVal) { + if (newVal < 1) { + this.addColumnRegexGroupCount = 1; + } + } + }, }, created() { if (this.elementsType !== "collection_contents") {