Skip to content

Commit a62d4c8

Browse files
authored
fix(custom-target): handle deletion in mutations correctly (#813)
1 parent f1dfc5e commit a62d4c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/cocoindex/op.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,9 @@ def _decode_mutation(
559559
return (
560560
context.spec,
561561
{
562-
context.key_decoder(key): context.value_decoder(value)
562+
context.key_decoder(key): (
563+
context.value_decoder(value) if value is not None else None
564+
)
563565
for key, value in mutation
564566
},
565567
)

0 commit comments

Comments
 (0)