mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
core: fix ts error
This commit is contained in:
committed by
Abdullah Atta
parent
ebd3ed06ab
commit
01ea478e46
@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { isReminderActive } from "../collections/reminders";
|
||||
import { GroupHeader, GroupOptions, ItemType } from "../types";
|
||||
import { GroupHeader, GroupOptions, ItemType, Reminder } from "../types";
|
||||
import { getWeekGroupFromTimestamp, MONTHS_FULL } from "./date";
|
||||
|
||||
type PartialGroupableItem = {
|
||||
@@ -60,7 +60,7 @@ function getKeySelector(
|
||||
|
||||
const date = new Date();
|
||||
if (item.type === "reminder")
|
||||
return isReminderActive(item) ? "Active" : "Inactive";
|
||||
return isReminderActive(item as Reminder) ? "Active" : "Inactive";
|
||||
else if (options.sortBy === "title")
|
||||
return getFirstCharacter(getTitle(item));
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user