mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
fix: proper undefined handling
This commit is contained in:
1 parent
3ecc87431a
commit
6fd8b83d39
2 files changed
+9
-1
No files matched your search
@@ -39,6 +39,12 @@ export default function RootLayout({ children }: RootLayoutProps) {
|
||||
paddingTop: isEmbed ? 0 : '3.25rem',
|
||||
}}
|
||||
>
|
||||
{/* <AlertDialog.Root open>
|
||||
<AlertDialog.Content>
|
||||
<AlertDialog.Title>Peepee</AlertDialog.Title>
|
||||
</AlertDialog.Content>
|
||||
</AlertDialog.Root> */}
|
||||
|
||||
<Theme
|
||||
appearance="dark"
|
||||
panelBackground="translucent"
|
||||
|
||||
@@ -290,7 +290,9 @@ export class CdonWriteStream extends WriteStream {
|
||||
this.value(fastStringFormat, value, stringTable),
|
||||
);
|
||||
} else if (object !== undefined) {
|
||||
const entries = Object.entries(object);
|
||||
const entries = Object.entries(object).filter(
|
||||
([, value]) => value !== undefined,
|
||||
);
|
||||
|
||||
this.uint8(ValueType.Object);
|
||||
this.uint32(entries.length);
|
||||
|
||||
Reference in new issue
Block a user