Skip to content

Commit

Permalink
fix: js limits on widget
Browse files Browse the repository at this point in the history
  • Loading branch information
ScuffedNewt committed Jul 20, 2024
1 parent 1f25f54 commit 8798a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/widgets/_add_typing.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
$('#add-element').on('click', function(e) {
e.preventDefault();
// make sure there are less than 2 elements
if ($('#elements').find('.form-group').length >= 2) {
if ($('#elements').find('.form-group').length >= {{ config('lorekeeper.extensions.max_elements') }}) {
return;
}
var $clone = $('.element-row').clone();
Expand Down

0 comments on commit 8798a09

Please sign in to comment.