Skip to content

Commit

Permalink
[fix] Fixed the corner case on validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
pandafy committed Feb 12, 2024
1 parent e4806e8 commit 5152dc7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';
(function ($) {
$(document).ready( function () {
if ($(".add-form").length || $(".sortedm2m-items").length < 2) {
if ($(".sortedm2m-items").length < 2) {
$('.sortedm2m-items').sortable('destroy');
}
});
Expand Down

0 comments on commit 5152dc7

Please sign in to comment.