diff options
author | 2025-02-26 10:55:59 +0000 | |
---|---|---|
committer | 2025-02-26 10:55:59 +0000 | |
commit | eb472313fddf39b022506b9444a6a19b2cf77841 (patch) | |
tree | 2a98aabb6e21decbf7ead95830aecb240f7f3867 | |
parent | 9e7c71d19c89407d9b27ded85d8c0fde238ce16c (diff) | |
download | astro-eb472313fddf39b022506b9444a6a19b2cf77841.tar.gz astro-eb472313fddf39b022506b9444a6a19b2cf77841.tar.zst astro-eb472313fddf39b022506b9444a6a19b2cf77841.zip |
[ci] format
-rw-r--r-- | packages/astro/src/transitions/router.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/astro/src/transitions/router.ts b/packages/astro/src/transitions/router.ts index 5dc327cf4..adc6bef16 100644 --- a/packages/astro/src/transitions/router.ts +++ b/packages/astro/src/transitions/router.ts @@ -397,7 +397,10 @@ async function transition( // // Note: getNamedItem can return null in real life, even if TypeScript doesn't think so, hence // the ?. - init.body = (from !== undefined && Reflect.get(HTMLFormElement.prototype, "attributes", form).getNamedItem('enctype')?.value === 'application/x-www-form-urlencoded') + init.body = + from !== undefined && + Reflect.get(HTMLFormElement.prototype, 'attributes', form).getNamedItem('enctype') + ?.value === 'application/x-www-form-urlencoded' ? new URLSearchParams(preparationEvent.formData as any) : preparationEvent.formData; } |