Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
fix: getting-started crash and build failure (calcom#12506)
Browse files Browse the repository at this point in the history
  • Loading branch information
hariombalhara authored Nov 23, 2023
1 parent 5dc3065 commit de479bb
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion apps/web/lib/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export const prepareRootMetadata = (recipe: RootMetadataRecipe): Metadata => ({
{
rel: "icon-mask",
url: "/safari-pinned-tab.svg",
// @ts-expect-error TODO available in the never Next.js version
color: "#000000",
},
{
Expand Down
2 changes: 1 addition & 1 deletion apps/web/playwright/teams.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ test.describe("Teams - Org", () => {

await page.goto(`/team/${team.slug}/${teamEventSlug}`);

await expect(page.locator('[data-testid="404-page"]')).toBeVisible();
await expect(page.locator("text=This page could not be found")).toBeVisible();
await doOnOrgDomain(
{
orgSlug: org.slug,
Expand Down
2 changes: 2 additions & 0 deletions packages/app-store/_utils/paid-apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ export const withPaidAppRedirect = async ({
? {
subscription_data: {
trial_period_days: trialDays,
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore - trial_settings isn't available cc @erik
trial_settings: { end_behavior: { missing_payment_method: "cancel" } },
},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ test.describe("Routing Forms", () => {
await page.goto(`apps/routing-forms/route-builder/${formId}`);
await disableForm(page);
await gotoRoutingLink({ page, formId });
await expect(page.locator("text=ERROR 404")).toBeVisible();
await expect(page.locator("text=This page could not be found")).toBeVisible();
});

test("should be able to edit the form", async ({ page }) => {
Expand Down
4 changes: 3 additions & 1 deletion packages/lib/hooks/useCompatSearchParams.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ export const useCompatSearchParams = () => {
Object.getOwnPropertyNames(params).forEach((key) => {
searchParams.delete(key);

const param = params[key];
// Though useParams is supposed to return a string/string[] as the key's value but it is found to return undefined as well.
// Maybe it happens for pages dir when using optional catch-all routes.
const param = params[key] || "";
const paramArr = typeof param === "string" ? param.split("/") : param;

paramArr.forEach((p) => {
Expand Down

0 comments on commit de479bb

Please sign in to comment.