fix: Await asynchronous calls in ProjectViewPage and remove redundant Leaflet imports in WMSLayer
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user