mirror of
https://github.com/Casvt/MIND.git
synced 2026-04-03 03:00:22 -04:00
Improved API input validation
This commit is contained in:
@@ -94,7 +94,7 @@ function testReminder() {
|
||||
const ns = [...
|
||||
document.querySelectorAll('.notification-service-list input[type="checkbox"]:checked')
|
||||
].map(c => parseInt(c.dataset.id))
|
||||
if (!ns) {
|
||||
if (!ns.length) {
|
||||
input.classList.add('error-input');
|
||||
input.title = 'No notification service set';
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user