From e981dd1e161e7c99aaad70123b7cbaf49dcc5f80 Mon Sep 17 00:00:00 2001 From: Cinder Date: Fri, 11 Oct 2024 21:06:14 -0700 Subject: [PATCH] [RecordBuilder] Fixed an oversight causing wrong rules to be applied --- src/js/components/RecordBuilder.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/components/RecordBuilder.ts b/src/js/components/RecordBuilder.ts index d5a3ce3..8a679d7 100644 --- a/src/js/components/RecordBuilder.ts +++ b/src/js/components/RecordBuilder.ts @@ -73,7 +73,7 @@ export default class RecordBuilder extends Component { reasonSelector.val(prebuilt.reason); reasonInput .val(reason.text) - .trigger("remt:input", true);; + .trigger("remt:input", true); container.find("button.rules-button").removeClass("active"); for (const rule of [prebuilt.rules]) @@ -123,6 +123,8 @@ export default class RecordBuilder extends Component { for (const rule of [reason.rules]) container.find("button.rules-button[name='" + rule + "']").addClass("active"); container.trigger("remt:buttons", true); + + this.generateRecordText(); }); $("