infisical icon indicating copy to clipboard operation
infisical copied to clipboard

Duplicate Error on Original Key

Open asharonbaltazar opened this issue 3 years ago • 1 comments

Describe the bug

An error should only apply to the new entry. It doesn't make sense to have an error present on submitted keys as well.

To Reproduce

Steps to reproduce the behavior:

  1. Go to /dashboard
  2. Create a duplicate key
  3. See error is present on the new key and the original one

Expected behavior

The error should apply only to the new key, similar to the no-number-in-the-beginning behavior.

Screenshots

Screenshot 2022-12-04 at 9 14 30 PM

Platform you are having the issue on:

N/A. It's a frontend issue.

Additional Context:

I believe this is due to the way errors are mapped. It seems like it's checking every entry with the same key name, regardless of whether it's an old key or not.

asharonbaltazar avatar Dec 05 '22 02:12 asharonbaltazar

I think you are right! When I created it, I just tried to find a quick solution, your way would be better! Thanks!

vmatsiiako avatar Dec 05 '22 03:12 vmatsiiako

Closing as stale issue.

akhilmhdh avatar Jul 05 '23 17:07 akhilmhdh