Skip to content

Commit 9070299

Browse files
committed
fixing build errors
1 parent 5352734 commit 9070299

File tree

4 files changed

+13
-19
lines changed

4 files changed

+13
-19
lines changed

package-lock.json

Lines changed: 1 addition & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/(redirects)/[...slug]/page.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,18 @@ async function getRedirects() {
1818
}
1919

2020
export async function generateStaticParams() {
21-
const redirects = await getRedirects();
21+
try {
22+
const redirects = await getRedirects();
2223

23-
return redirects.map(({ path }) => ({ slug: path.split('/') }));
24+
return redirects.map(({ path }) => {
25+
// Filter out empty strings from split (in case of leading/trailing slashes)
26+
const slugParts = path.split('/').filter(Boolean);
27+
return { slug: slugParts };
28+
});
29+
} catch (error) {
30+
console.error('Error generating static params for redirects:', error);
31+
return [];
32+
}
2433
}
2534

2635
export default async function Redirect(props: {

src/app/events/components/event-sessions-list/event-sessions-list.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ export default function EventSessionsList({
4141
context.venues,
4242
isEventSessionInFilter,
4343
sortAndGroupEventSessions,
44-
randomOrderSeed,
4544
]);
4645

4746
const [showMobileSidebar, setShowMobileSidebar] = useState(false);

src/app/wpaint/components/SubmissionModal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const SubmissionModal: React.FC<SubmissionModalProps> = ({
1515
setAuthor,
1616
}) => {
1717
const [showModal, setShowModal] = useState(false);
18+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
1819
const [previewDataUrl, setPreviewDataUrl] = useState<string | null>(null);
1920

2021
const handleConfirm = () => {

0 commit comments

Comments
 (0)