We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 030e4ee commit 30ccf9eCopy full SHA for 30ccf9e
1 file changed
appsTeacher/groups/app.js
@@ -320,7 +320,7 @@ module.exports = function init(site) {
320
if (_data.type == "validDay") {
321
let date = new Date(_data.date);
322
let index = doc.dayList.findIndex(
323
- (itm) => new Date(itm.date).getDate() === date.getDate() && new Date(itm.date).getMonth() === date.getMonth() && new Date(itm.date).getFullYear() === date.getFullYear() && !itm.active
+ (itm) => new Date(itm.date).getDate() === date.getDate() && new Date(itm.date).getMonth() === date.getMonth() && new Date(itm.date).getFullYear() === date.getFullYear() && !itm.isBook
324
);
325
if (index !== -1) {
326
if (!doc.dayList[index].isBook) {
0 commit comments