Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion crates/bindings-typescript/src/lib/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,8 @@ export function table<Row extends RowObj, const Opts extends TableOpts<Row>>(
});
}

if (meta.defaultValue) {
// Check for defaultValue on the property to allow for 0, false, '', and undefined as defaults
if (Object.prototype.hasOwnProperty.call(meta, 'defaultValue')) {
const writer = new BinaryWriter(16);
builder.serialize(writer, meta.defaultValue);
defaultValues.push({
Expand Down
Loading