Skip to content

Commit

Permalink
[RecordBuilder] Fixed an oversight causing wrong rules to be applied
Browse files Browse the repository at this point in the history
  • Loading branch information
Sindrake committed Oct 12, 2024
1 parent 867411d commit e981dd1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/components/RecordBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down Expand Up @@ -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();
});

$("<option>")
Expand Down

0 comments on commit e981dd1

Please sign in to comment.