Skip to content

Commit 037eef0

Browse files
authored
chore: React Supabase Todolist connector minor typing fix (#953)
1 parent 08e9456 commit 037eef0

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)