diff options
Diffstat (limited to 'packages/integrations/lit/server.js')
-rw-r--r-- | packages/integrations/lit/server.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/integrations/lit/server.js b/packages/integrations/lit/server.js index d4ca4e08f..d71ccee47 100644 --- a/packages/integrations/lit/server.js +++ b/packages/integrations/lit/server.js @@ -17,10 +17,10 @@ function getCustomElementConstructor(name) { async function isLitElement(Component) { const Ctr = getCustomElementConstructor(Component); - return !!(Ctr && Ctr._$litElement$); + return !!Ctr?._$litElement$; } -async function check(Component, _props, _children) { +async function check(Component) { // Lit doesn't support getting a tagName from a Constructor at this time. // So this must be a string at the moment. return !!(await isLitElement(Component)); |