Merge branch 'main' into feat/vercel-adapter

This commit is contained in:
JuanM04 2022-03-31 20:43:57 -03:00
commit 2c260760b4
No known key found for this signature in database
GPG key ID: 0171B712E406271A

View file

@ -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;
}