ArchGPT / insomnium

Insomnium is a fast local API testing tool that is privacy-focused and 100% local. For testing GraphQL, REST, WebSockets and gRPC. This is a fork of Kong/insomnia
MIT License
3.3k stars 123 forks source link

When switching type, the type will change anyway regardless of the prompt result and delete the datas #125

Open Burrish opened 6 months ago

Burrish commented 6 months ago

Expected Behavior

The type should change only after selecting "Ok" or stay the same when clicking on Cancel

image

Actual Behavior

After Entering settings, when switching to any kind of type ( body type or authentication ) a prompt to avoid losing your settings appears as such image

image

but right after clicking, the authentication / body type will instantly change, making the prompt useless and losing your settings and data anyway

Reproduction Steps

Example for the body: After creating a request

  1. Click on multipart
  2. add a setting with any text
  3. switch to JSON
  4. the prompt appears and the data is lost

Is there an existing issue for this?

Additional Information

Version: Insomnium 0.2.3-a Build date: 29/10/2023 OS: Windows_NT x64 10.0.19045 Electron: 25.8.1 Node: 18.15.0 Node ABI: 116 V8: 11.4.183.29-electron.0 Architecture: x64

Insomnium Version

0.2.3-a

What operating system are you using?

Windows

Operating System Version

Windows 10

Installation method

Downloaded windows package from the github release tab of insomnium

Last Known Working Insomnium version

No response

G0HAN3 commented 6 months ago

Hey, can you assign this issue to me?

archywillhe commented 5 months ago

@Burrish aww this is a good catch.. really bad bug

@G0HAN3 my bad I had been radio-silence recently (catching some work & some stuff happened and now I'm back on github).. It will be real cool if you can sort it out!

I will assign this to you now