Skip to content

Commit ab1f154

Browse files
committed
Minor typing fix.
1 parent 08e9456 commit ab1f154

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

demos/react-supabase-todolist/src/library/powersync/SupabaseConnector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export class SupabaseConnector extends BaseObserver<SupabaseConnectorListener> i
124124
result = await table.upsert(record);
125125
break;
126126
case UpdateType.PATCH:
127-
result = await table.update(op.opData).eq('id', op.id);
127+
result = await table.update(op.opData ?? {}).eq('id', op.id);
128128
break;
129129
case UpdateType.DELETE:
130130
result = await table.delete().eq('id', op.id);

0 commit comments

Comments
 (0)