Skip to content

Conversation

@Tanmay-008
Copy link
Contributor

@Tanmay-008 Tanmay-008 commented Nov 30, 2025

Summary

The LogsPage component crashes at runtime when the backend sends a log
with msg, traceId, or step that is not a string. Since the UI
calls .toLowerCase() during filtering, any non-string value (null,
number, object, undefined) immediately triggers a TypeError.

This PR normalizes these fields to empty strings before applying
.toLowerCase(), ensuring the filtering logic never crashes even when
the backend sends unexpected data types.

Related Issues

Fixes #992

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactor
  • Other (please describe):

Checklist

  • I have read the CONTRIBUTING.md
  • My code follows the code style of this project
  • I have added tests where applicable
  • I have tested my changes locally
  • I have linked relevant issues
  • I have added screenshots for UI changes (if applicable)

Screenshots (if applicable)

Additional Context

@vercel
Copy link

vercel bot commented Nov 30, 2025

Someone is attempting to deploy a commit to the motia Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix:LogsPage crashes while filtering because non-string log fields cause .toLowerCase() to fail

1 participant