fix: Await asynchronous calls in ProjectViewPage and remove redundant Leaflet imports in WMSLayer

This commit is contained in:
2025-06-25 13:43:27 +02:00
parent 988a4eb71b
commit 44bc7b3e7c
2 changed files with 2 additions and 6 deletions

View File

@@ -17,8 +17,8 @@ import ProjectMap from "@/components/ui/ProjectMap";
export default async function ProjectViewPage({ params }) {
const { id } = await params;
const project = getProjectWithContract(id);
const notes = getNotesForProject(id);
const project = await getProjectWithContract(id);
const notes = await getNotesForProject(id);
if (!project) {
return (