Open Ezard opened 3 years ago
Thanks for reporting this @Ezard! You're correct that null
isn't a possible option in the enum dropdown menu.
I'll fix that.
In the mean time, you can also select the cell, and press Del or Backspace to set the value to null
. It should not revert back then.
Ahh, thanks @madebysid
On a related note, it seems like pressing Backspace
when the cell is selected works, but pressing Delete
doesn't
When Delete
is pressed, the cell just becomes editable
In the mean time, you can also select the cell, and press Del or Backspace to set the value to
null
. It should not revert back then.
Not working @madebysid
@Ezard what I have worked around this by setting the cell empty (i.e. deleting its content) and then SAVE CHANGES. That sets it to null. See if that works.
Still a thing.
Clearing value and clicking Save Changes
right away does not work, because the value is automatically set again right when the focus is moved off the field.
Still a issue
Making the enum null only works by pressing delete or backspace when the field is selected.
Any plans to fix it?
Bug description
A nullable enum value cannot be set to null when being edited in Prisma Studio. Instead, only a non-null value can be selected. The cell will be populated with a non-null value after being edited and then losing focus
How to reproduce
NULL
Expected behavior
Nullable enum values should be able to be set to null via Prisma Studio
Prisma information
n/a
Environment & setup