Kong / insomnia

The open-source, cross-platform API client for GraphQL, REST, WebSockets, SSE and gRPC. With Cloud, Local and Git storage.
https://insomnia.rest
Apache License 2.0
34.4k stars 1.94k forks source link

Live preview section of variable does not show the variable if a nested object #6528

Open davehouser1 opened 1 year ago

davehouser1 commented 1 year ago

Expected Behavior

If variable is

"animal": {
  "dog": {
    "name": "rover"
    }
  }

Selecting the variable defined as {{animal}} should show in the live preview the above text.

Actual Behavior

The live preview shows [object Object]

Reproduction Steps

  1. Go to debug
  2. Select cog gear next to env vars
  3. Create new env var settings
  4. Create the above structure.
  5. Select close
  6. Open a request or create a new one
  7. Select the JSON tab, and add {{animal}} as a variable. It should turn purple.
  8. select the purple "animal" object.
  9. Look at "Live Preview" section.

Is there an existing issue for this?

Additional Information

No response

Insomnia Version

2023.5.8

What operating system are you using?

Windows

Operating System Version

Windows 11

Installation method

.exe install

Last Known Working Insomnia version

Unknown

filfreire commented 12 months ago

Similar issue https://github.com/Kong/insomnia/issues/3919