chore(web): fix prefer-const and remove unused import #91
3 changed files with 2 additions and 3 deletions
|
|
@ -74,7 +74,7 @@ export default async function ListPage({
|
|||
|
||||
// Fetch subtasks for all parent tasks
|
||||
const parentIds = tasks.map((t) => t.id);
|
||||
let subtasksMap: Record<string, Task[]> = {};
|
||||
const subtasksMap: Record<string, Task[]> = {};
|
||||
|
||||
if (parentIds.length > 0) {
|
||||
const allSubtasks = await db
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ export async function GET(
|
|||
}
|
||||
|
||||
// Build query
|
||||
let query = db
|
||||
const query = db
|
||||
.select()
|
||||
.from(slTasks)
|
||||
.where(and(...conditions));
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
import { ThemeToggle } from "./ThemeToggle";
|
||||
import { User, LogOut } from "lucide-react";
|
||||
import Link from "next/link";
|
||||
import { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue