diff --git a/src/app/portfolio/[slug]/property/[lmkKey]/page.tsx b/src/app/portfolio/[slug]/property/[lmkKey]/page.tsx
new file mode 100644
index 00000000..5a4e834c
--- /dev/null
+++ b/src/app/portfolio/[slug]/property/[lmkKey]/page.tsx
@@ -0,0 +1,7 @@
+export default function () {
+ return (
+ <>
+
Hello world
+ >
+ );
+}
diff --git a/src/app/portfolio/[slug]/search/page.tsx b/src/app/portfolio/[slug]/search/page.tsx
index 4e2d9ef7..2bada9f6 100644
--- a/src/app/portfolio/[slug]/search/page.tsx
+++ b/src/app/portfolio/[slug]/search/page.tsx
@@ -59,17 +59,17 @@ export default function Search({ params }: { params: { slug: string } }) {
}
}
- const redirectToEpc = () => {
+ const redirectToProperty = () => {
if (data === null) return;
const res = data.rows.find(
(row: SearchResult) => row["lmk-key"] === currentlyToggled
- );
+ ) as SearchResult;
const portfolioId = params.slug;
- const propertyId = res ? ["lmk-key"] : "";
+ const lmkKey = res["lmk-key"];
- router.push(`/portfolio/${portfolioId}/property/${propertyId}`);
+ router.push(`/portfolio/${portfolioId}/property/${lmkKey}`);
};
const submitProps = {
@@ -131,7 +131,7 @@ export default function Search({ params }: { params: { slug: string } }) {