[ci] format

This commit is contained in:
Lukas Bachlechner 2024-09-06 11:27:38 +00:00 committed by astrobot-houston
parent 4a44e82bbd
commit 4a95159746

View file

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