Skip to content

Commit 1c1e540

Browse files
committed
Limit list constraints to a max of 13
1 parent d2ff7e9 commit 1c1e540

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/js/common.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,9 @@ function initializeSavedLists(){
213213
window.imTableConstraint["savedList"] = window.imTableConstraint[
214214
"savedList"
215215
].filter(title => title !== el.textContent);
216-
}
217-
else {
216+
} else if(window.imTableConstraint['savedList'].length === 13) {
217+
window.alert('You can only select a max of 13 List Contraints')
218+
} else {
218219
el.dataset.listConstraintActive = "true";
219220
el.classList.add('active');
220221
var listName = el.textContent;

0 commit comments

Comments
 (0)