Skip to content

[Bug]: Helicone Display of prompt values #2557

@nathan-chappell

Description

@nathan-chappell

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions