fix: getting-started crash and build failure (#12506)
This commit is contained in:
1 parent
5dc3065a47
commit
de479bb2da
5 files changed
+7
-4
No files matched your search
@@ -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" } },
|
||||
},
|
||||
}
|
||||
|
||||
@@ -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 }) => {
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user