feat: Implement task notes functionality with CRUD operations and integrate into project tasks section
This commit is contained in:
@@ -6,10 +6,11 @@ import Button from "@/components/ui/Button";
|
||||
import TaskTemplateForm from "@/components/TaskTemplateForm";
|
||||
|
||||
export default async function EditTaskTemplatePage({ params }) {
|
||||
const { id } = await params;
|
||||
// Fetch the task template
|
||||
const template = db
|
||||
.prepare("SELECT * FROM tasks WHERE task_id = ? AND is_standard = 1")
|
||||
.get(params.id);
|
||||
.get(id);
|
||||
|
||||
if (!template) {
|
||||
notFound();
|
||||
|
||||
Reference in New Issue
Block a user