We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 560d2ec commit d8e6fa6Copy full SHA for d8e6fa6
src/main/resources/static/js/main.js
@@ -459,8 +459,12 @@ $(document).ready(function() {
459
var indexToRemove = context.$index();
460
461
// Removing Requirement(Condition), based on index position, from Requirement form in Add_Subscription window.
462
- vm.subscription()[0].requirements.splice(indexToRemove,1);
463
-
+ if (indexToRemove > 0 ){
+ vm.subscription()[0].requirements.splice(indexToRemove,1);
464
+ }
465
+ else {
466
+ $.alert("You need to have atleast one Condition.");
467
468
});
469
// /Stop ## Delete Condition ################################################
470
0 commit comments