diff options
author | 2022-03-31 20:43:57 -0300 | |
---|---|---|
committer | 2022-03-31 20:43:57 -0300 | |
commit | 2c260760b4305ce211aef71618202704e6f11cdb (patch) | |
tree | 16fd28ec807f2eb2e17f6c5a1512d9d09c4f6772 | |
parent | 286dff2daef15cbeb73a0d1893560331ed368aa8 (diff) | |
parent | cccc6034ae276a3204bd4031a5d3c8f189ae0b07 (diff) | |
download | astro-2c260760b4305ce211aef71618202704e6f11cdb.tar.gz astro-2c260760b4305ce211aef71618202704e6f11cdb.tar.zst astro-2c260760b4305ce211aef71618202704e6f11cdb.zip |
Merge branch 'main' into feat/vercel-adapter
-rw-r--r-- | packages/astro/src/core/render/result.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/astro/src/core/render/result.ts b/packages/astro/src/core/render/result.ts index 0b0f24336..7c9a9c30f 100644 --- a/packages/astro/src/core/render/result.ts +++ b/packages/astro/src/core/render/result.ts @@ -75,10 +75,10 @@ class Slots { const expression = getFunctionExpression(component); if (expression) { const slot = expression(...args); - return await renderSlot(this.#result, slot).then((res) => res != null ? String(res) : res); + return await renderSlot(this.#result, slot).then((res) => (res != null ? String(res) : res)); } } - const content = await renderSlot(this.#result, this.#slots[name]).then((res) => res != null ? String(res) : res); + const content = await renderSlot(this.#result, this.#slots[name]).then((res) => (res != null ? String(res) : res)); if (cacheable) this.#cache.set(name, content); return content; } |