Skip to content

1.0.44

Choose a tag to compare

@morapelker morapelker released this 25 Feb 09:51
· 2977 commits to main since this release

What's Changed

Fix 'todos.filter is not a function' runtime error (#66)

  • Fix runtime crash where todos.filter is not a function error occurred when input.todos was a non-array truthy value (e.g., a string or object). The previous pattern (input.todos || []) only guards against falsy values but doesn't ensure the value is actually an array.
  • Replace unsafe fallback pattern (value || []) as Array<T> with explicit Array.isArray() checks across all 4 occurrences in ToolCard.tsx and TodoWriteToolView.tsx, ensuring .filter() and .length are only called on actual arrays.