summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar JuanM04 <me@juanm04.com> 2022-03-31 20:43:57 -0300
committerGravatar JuanM04 <me@juanm04.com> 2022-03-31 20:43:57 -0300
commit2c260760b4305ce211aef71618202704e6f11cdb (patch)
tree16fd28ec807f2eb2e17f6c5a1512d9d09c4f6772
parent286dff2daef15cbeb73a0d1893560331ed368aa8 (diff)
parentcccc6034ae276a3204bd4031a5d3c8f189ae0b07 (diff)
downloadastro-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.ts4
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;
}