Matt Luo
Matt Luo3w ago

Convex Dashboard erroneously prevents Save in Edit Document UX

Observed Behavior: Edit document panel shows disabled Save button with a validation message: Please fix the errors above to continue". Steps to reproduce: 1) RIght click and invoke the menu button
2) Click Edit document Workaround: 1) the error goes away if you type a valid number 2) Double Click a column and manually type there without invoking the menu button
Expected behavior: Is Convex dashboard really not going to let me update the picUrl manually, because deleted_at is undefined? The Edit Document behavior should allow an edit. We acknowledge undefined is not a type in convex, but it's used to delete data. https://docs.convex.dev/database/types unset data is typeof undefined. v.Optional in convex does not work for the null type So, There is some incompatibility somewhere.
Data Types | Convex Developer Hub
All Convex documents are defined as Javascript objects. These objects can have
No description
No description
8 Replies
Matt Luo
Matt LuoOP3w ago
No description
ari
ari3w ago
HI Matt, do you experience the same issue if you remove the deleted_at key from the document completely while editing?
Matt Luo
Matt LuoOP3w ago
If I remove the deleted_at key, I bypass that validation, and am able to save
ari
ari3w ago
cool, glad that works for now. Was the dashboard adding deleted_at: undefined on it's own? If so, that's a bug we can fix
Matt Luo
Matt LuoOP3w ago
No, that’s a custom column my team added to the table
ari
ari3w ago
I just meant when you go into edit mode, did deleted_at appear as undefined instead of just being omitted?
Matt Luo
Matt LuoOP3w ago
Yes it did
ari
ari3w ago
cool thanks Matt! That's a bug we'll look into

Did you find this page helpful?