Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Helicone Display of prompt values #2557

Open
nathan-chappell opened this issue Sep 2, 2024 · 0 comments
Open

[Bug]: Helicone Display of prompt values #2557

nathan-chappell opened this issue Sep 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nathan-chappell
Copy link

What happened?

The logic for viewing prompt inputs doesn't handle the case well when an input is falsy:

image

In this case the real input was an empty string (as was intended).

Relevant code:

const getRenderText = () => {
  if (selectedProperties) {
    return selectedProperties[keyName] || "{{undefined}}";
  } else {
    return keyName;
  }
};

Relevant log output

No response

Twitter / LinkedIn details

No response

@nathan-chappell nathan-chappell added the bug Something isn't working label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant