mirror of
https://github.com/withastro/astro.git
synced 2025-01-22 18:41:55 -05:00
[ci] format
This commit is contained in:
parent
4a44e82bbd
commit
4a95159746
1 changed files with 2 additions and 1 deletions
|
@ -39,7 +39,8 @@ export function serializeSignals(
|
|||
for (const [key, value] of Object.entries(props)) {
|
||||
const isPropArray = Array.isArray(value);
|
||||
// `typeof null` is 'object' in JS, so we need to check for `null` specifically
|
||||
const isPropObject = !isSignal(value) && typeof props[key] === 'object' && props[key] !== null && !isPropArray;
|
||||
const isPropObject =
|
||||
!isSignal(value) && typeof props[key] === 'object' && props[key] !== null && !isPropArray;
|
||||
|
||||
if (isPropObject || isPropArray) {
|
||||
const values = isPropObject ? Object.keys(props[key]) : value;
|
||||
|
|
Loading…
Reference in a new issue