Skip to content

Conversation

@rosskukulinski
Copy link

Summary

The quantity field does not exist in the ListItem protobuf schema (see lib/definitions.json). Including it in _encode() causes protobuf encoding errors when calling methods like removeItem() that need to encode the item.

Problem

When trying to remove an item from a list using list.removeItem(item), the following error occurs:

.pcov.proto.ListItem#quantity is not a field: undefined

This happens because _encode() tries to include quantity: this._quantity but the protobuf schema for ListItem doesn't have a quantity field.

Solution

Remove the quantity field from the _encode() method since it's not part of the protobuf schema.

🤖 Generated with Claude Code

The 'quantity' field does not exist in the ListItem protobuf schema
(see lib/definitions.json). Including it in _encode() causes protobuf
encoding errors when calling methods like removeItem() that need to
encode the item.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant